Skip to content

Commit

Permalink
support more cpu arches for linux
Browse files Browse the repository at this point in the history
Co-authored-by: Matheus C. França <[email protected]>
  • Loading branch information
marler8997 and kassane committed May 5, 2024
1 parent 49ae4a7 commit 50482ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ jobs:
zig-out/zigup-x86_64-windows.zip
zig-out/zigup-aarch64-linux.tar.gz
zig-out/zigup-aarch64-macos.tar.gz
zig-out/zigup-arm-linux.tar.gz
zig-out/zigup-riscv64-linux.tar.gz
zig-out/zigup-powerpc-linux.tar.gz
zig-out/zigup-powerpc64le-linux.tar.gz
4 changes: 4 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ fn ci(
"x86_64-windows",
"aarch64-linux",
"aarch64-macos",
"arm-linux",
"riscv64-linux",
"powerpc-linux",
"powerpc64le-linux",
};

const make_archive_step = b.step("archive", "Create CI archives");
Expand Down
3 changes: 3 additions & 0 deletions zigup.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ const fixdeletetree = @import("fixdeletetree.zig");
const arch = switch (builtin.cpu.arch) {
.x86_64 => "x86_64",
.aarch64 => "aarch64",
.arm => "armv7a",
.riscv64 => "riscv64",
.powerpc64le => "powerpc64le",
.powerpc => "powerpc",
else => @compileError("Unsupported CPU Architecture"),
};
const os = switch (builtin.os.tag) {
Expand Down

0 comments on commit 50482ca

Please sign in to comment.