diff --git a/.github/workflows/artifact.yml b/.github/workflows/artifact.yml index 4783c5b..297cab2 100644 --- a/.github/workflows/artifact.yml +++ b/.github/workflows/artifact.yml @@ -6,6 +6,7 @@ jobs: matrix: include: - os: windows-latest + - os: windows-11-arm - os: macos-latest - os: ubuntu-latest fail-fast: false diff --git a/build.zig b/build.zig index 42906a9..ff46fc6 100644 --- a/build.zig +++ b/build.zig @@ -334,6 +334,18 @@ fn addTests( }, else => {}, }, + .windows => switch (builtin.cpu.arch) { + .aarch64 => switch (comptime zig_release) { + // no windows-aarch64 downloads before 0.9.0 + .@"0.7.0", + .@"0.7.1", + .@"0.8.0", + .@"0.8.1", + => continue, + else => {}, + }, + else => {}, + }, else => {}, } @@ -385,6 +397,13 @@ fn addTests( }, else => true, }, + .windows => switch (b.graph.host.result.cpu.arch) { + .aarch64 => switch (zig_release) { + .@"0.9.0", .@"0.9.1" => false, // zig build crashes with exit code 255 + else => true, + }, + else => true, + }, else => true, };