Skip to content

Commit

Permalink
[test] updating ci and gitignore for 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
pblischak committed Jun 16, 2024
1 parent 1a8fedd commit 488fe21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
version: 0.13.0
- name: Run Tests
run: zig build test
- name: Check Formatting
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
version: 0.13.0
- name: Run Enemy Spawner
run: |
pushd examples/enemy_spawner
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
zig-cache/
.zig-cache/
zig-out/
man/
/release/
Expand Down
6 changes: 2 additions & 4 deletions src/utils.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const std = @import("std");
/// Comptime check for integer types.
pub fn ensureIntegerType(comptime I: type) bool {
return switch (@typeInfo(I)) {
.ComptimeInt => true,
.Int => true,
.ComptimeInt, .Int => true,
else => @compileError("Comptime variable I must be an integer type"),
};
}
Expand All @@ -15,8 +14,7 @@ pub fn ensureFloatType(comptime F: type) bool {
@compileError("Float type f16 not supported");
}
return switch (@typeInfo(F)) {
.ComptimeFloat => true,
.Float => true,
.ComptimeFloat, .Float => true,
else => @compileError("Comptime variable F must be a float type"),
};
}
Expand Down

0 comments on commit 488fe21

Please sign in to comment.