diff --git a/.github/workflows/artifact.yml b/.github/workflows/artifact.yml index 0d29928..1fe3205 100644 --- a/.github/workflows/artifact.yml +++ b/.github/workflows/artifact.yml @@ -19,6 +19,22 @@ jobs: zig build -Dci_target=ubuntu-latest-x86_64 -p zig-out-ubuntu-latest-x86_64 - run: | zig build -Dci_target=ubuntu-latest-aarch64 -p zig-out-ubuntu-latest-aarch64 + - run: | + zig build -Dci_target=ubuntu-latest-riscv64 -p zig-out-ubuntu-latest-riscv64 + - run: | + zig build -Dci_target=ubuntu-latest-armv7a -p zig-out-ubuntu-latest-armv7a + - run: | + zig build -Dci_target=ubuntu-latest-powerpc -p zig-out-ubuntu-latest-powerpc + - run: | + zig build -Dci_target=ubuntu-latest-powerpc64le -p zig-out-ubuntu-latest-powerpc64le + - run: | + zig build -Dci_target=ubuntu-latest-riscv64 -p zig-out-ubuntu-latest-riscv64 + - run: | + zig build -Dci_target=ubuntu-latest-armv7a -p zig-out-ubuntu-latest-armv7a + - run: | + zig build -Dci_target=ubuntu-latest-powerpc -p zig-out-ubuntu-latest-powerpc + - run: | + zig build -Dci_target=ubuntu-latest-powerpc64le -p zig-out-ubuntu-latest-powerpc64le - run: | zig build -Dci_target=macos-latest-x86_64 -p zig-out-macos-latest-x86_64 - run: | @@ -34,3 +50,23 @@ jobs: with: name: zigup ${{ matrix.os }}-aarch64 path: zig-out-${{matrix.os}}-aarch64/bin/* + - if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v2 + with: + name: zigup ${{ matrix.os }}-riscv64 + path: zig-out-${{matrix.os}}-riscv64/bin/* + - if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v2 + with: + name: zigup ${{ matrix.os }}-armv7a + path: zig-out-${{matrix.os}}-armv7a/bin/* + - if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v2 + with: + name: zigup ${{ matrix.os }}-powerpc + path: zig-out-${{matrix.os}}-powerpc/bin/* + - if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v2 + with: + name: zigup ${{ matrix.os }}-powerpc64le + path: zig-out-${{matrix.os}}-powerpc64le/bin/* diff --git a/build.zig b/build.zig index 5ede94e..c778b3d 100644 --- a/build.zig +++ b/build.zig @@ -136,5 +136,9 @@ const ci_target_map = std.ComptimeStringMap([]const u8, .{ .{ "macos-latest-x86_64", "x86_64-macos" }, .{ "windows-latest-x86_64", "x86_64-windows" }, .{ "ubuntu-latest-aarch64", "aarch64-linux" }, + .{ "ubuntu-latest-armv7a", "arm-linux" }, + .{ "ubuntu-latest-riscv64", "riscv64-linux" }, + .{ "ubuntu-latest-powerpc64le", "powerpc64le-linux" }, + .{ "ubuntu-latest-powerpc", "powerpc-linux" }, .{ "macos-latest-aarch64", "aarch64-macos" }, }); diff --git a/zigup.zig b/zigup.zig index 19314ff..bee8230 100644 --- a/zigup.zig +++ b/zigup.zig @@ -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) {