Skip to content

Commit

Permalink
more targets artifact (fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Apr 25, 2024
1 parent 4a28255 commit 68ed570
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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/*
4 changes: 4 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,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" },
});
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 68ed570

Please sign in to comment.