-
Notifications
You must be signed in to change notification settings - Fork 61
42 lines (42 loc) · 1.64 KB
/
artifact.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Artifacts
on: [pull_request]
jobs:
test:
strategy:
matrix:
arch: [x86_64]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.11.0
- run: |
zig build test -Dfetch -Dci_target=${{matrix.os}}-${{matrix.arch}}
- run: |
zig build -Dfetch -Dci_target=ubuntu-latest-x86_64 -p zig-out-ubuntu-latest-x86_64
- run: |
zig build -Dfetch -Dci_target=ubuntu-latest-aarch64 -p zig-out-ubuntu-latest-aarch64
- run: |
zig build -Dfetch -Dci_target=ubuntu-latest-armv7a -p zig-out-ubuntu-latest-armv7a
- run: |
zig build -Dfetch -Dci_target=ubuntu-latest-powerpc -p zig-out-ubuntu-latest-powerpc
- run: |
zig build -Dfetch -Dci_target=ubuntu-latest-powerpc64le -p zig-out-ubuntu-latest-powerpc64le
- run: |
zig build -Dfetch -Dci_target=macos-latest-x86_64 -p zig-out-macos-latest-x86_64
- run: |
zig build -Dfetch -Dci_target=macos-latest-aarch64 -p zig-out-macos-latest-aarch64
- run: |
zig build -Dfetch -Dci_target=windows-latest-x86_64 -p zig-out-windows-latest-x86_64
- uses: actions/upload-artifact@v2
with:
name: zigup ${{ matrix.os }}-${{ matrix.arch }}
path: zig-out/bin/*
- if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v2
with:
name: zigup ${{ matrix.os }}-aarch64
path: zig-out-${{matrix.os}}-aarch64/bin/*