Skip to content

Commit 41e8397

Browse files
committed
chore(ci): Pin zig version
1 parent 64cd78b commit 41e8397

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
zig-version:
15-
- "master"
15+
- "0.16.0-dev.747+493ad58ff"
1616
operating-system: [ ubuntu-latest, macos-latest ]
1717
optimize:
1818
- "Debug"
@@ -38,7 +38,7 @@ jobs:
3838
- name: Run tests ${{ matrix.optimize }}
3939
run: zig build -Doptimize=${{ matrix.optimize }} ${{ matrix.options }} test
4040
- name: Run behavior tests ${{ matrix.optimize }}
41-
run: zig build -Doptimize=${{ matrix.optimize }} ${{ matrix.options }} test-behavior
41+
run: zig build -Doptimize=${{ matrix.optimize }} ${{ matrix.options }} test-behavior -- --behavior --compile-error
4242
- name: Cleanup
4343
run: rm -rf zig-out zig-cache
4444

build.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ pub fn build(b: *Build) !void {
118118
b.installArtifact(behavior_exe.?);
119119
const run_behavior = b.addRunArtifact(behavior_exe.?);
120120
run_behavior.step.dependOn(install_step);
121+
run_behavior.step.dependOn(install_step);
122+
if (b.args) |args| {
123+
run_behavior.addArgs(args);
124+
}
121125
b.step("test-behavior", "Test behavior").dependOn(&run_behavior.step);
122126
}
123127

src/TypeChecker.zig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ fn checkBinary(ast: Ast.Slice, reporter: *Reporter, gc: *GC, _: ?Ast.Node.Index,
192192
"Unexpected binary operator.",
193193
);
194194

195-
std.debug.print(">> {s}\n", .{@tagName(node_components.Binary.operator)});
196-
197195
had_error = true;
198196
},
199197
}
@@ -307,7 +305,6 @@ fn checkBinary(ast: Ast.Slice, reporter: *Reporter, gc: *GC, _: ?Ast.Node.Index,
307305
ast.tokens.get(node_end_location),
308306
"Unexpected binary operator.",
309307
);
310-
std.debug.print(">> {s}\n", .{@tagName(node_components.Binary.operator)});
311308

312309
had_error = true;
313310
},

0 commit comments

Comments
 (0)