Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more targets #101

Closed
wants to merge 2 commits into from
Closed
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
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 @@ -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" },
});
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
Loading