Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/aarch64_linux_zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
- aarch64-linux-gnu
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v7

Check failure on line 17 in .github/workflows/aarch64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 17 in .github/workflows/aarch64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

aarch64_linux_zig.yml:17: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: mlugg/setup-zig@v2

Check failure on line 18 in .github/workflows/aarch64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 18 in .github/workflows/aarch64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

aarch64_linux_zig.yml:18: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
version: 0.16.0
version: 0.17.0
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amd64_linux_zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
- x86_64-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

Check failure on line 17 in .github/workflows/amd64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 17 in .github/workflows/amd64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

amd64_linux_zig.yml:17: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: mlugg/setup-zig@v2

Check failure on line 18 in .github/workflows/amd64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 18 in .github/workflows/amd64_linux_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

amd64_linux_zig.yml:18: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
version: 0.16.0
version: 0.17.0
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amd64_macos_zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
- x86_64-macos-none
runs-on: macos-15-intel # Using x86 processors
steps:
- uses: actions/checkout@v7

Check failure on line 16 in .github/workflows/amd64_macos_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 16 in .github/workflows/amd64_macos_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

amd64_macos_zig.yml:16: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: mlugg/setup-zig@v2

Check failure on line 17 in .github/workflows/amd64_macos_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 17 in .github/workflows/amd64_macos_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

amd64_macos_zig.yml:17: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
version: 0.16.0
version: 0.17.0
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/amd64_windows_zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
- x86_64-windows-gnu
runs-on: windows-latest
steps:
- uses: actions/checkout@v7

Check failure on line 16 in .github/workflows/amd64_windows_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 16 in .github/workflows/amd64_windows_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

amd64_windows_zig.yml:16: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: mlugg/setup-zig@v2

Check failure on line 17 in .github/workflows/amd64_windows_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 17 in .github/workflows/amd64_windows_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

amd64_windows_zig.yml:17: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
version: 0.16.0
version: 0.17.0
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/arm64_macos_zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
- aarch64-macos-none
runs-on: macos-latest # Using M1 processors
steps:
- uses: actions/checkout@v7

Check failure on line 16 in .github/workflows/arm64_macos_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 16 in .github/workflows/arm64_macos_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

arm64_macos_zig.yml:16: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: mlugg/setup-zig@v2

Check failure on line 17 in .github/workflows/arm64_macos_zig.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

arm64_macos_zig.yml:17: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
version: 0.16.0
version: 0.17.0
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- uses: actions/checkout@v7
- uses: mlugg/setup-zig@v2
with:
version: 0.16.0
version: 0.17.0
- run: zig fmt --check .
4 changes: 1 addition & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ pub fn build(b: *std.Build) void {
// Add a run step for convenience
const run_cmd = b.addRunArtifact(list_cpu_features);
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
run_cmd.addPassthruArgs();

const run_step = b.step("run", "Run list_cpu_features");
run_step.dependOn(&run_cmd.step);
Expand Down
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.{
.name = .cpu_features,
.version = "0.0.1",
.minimum_zig_version = "0.16.0",
.minimum_zig_version = "0.17.0",
.paths = .{
"build.zig",
"build.zig.zon",
Expand Down
Loading