-
Notifications
You must be signed in to change notification settings - Fork 61
72 lines (72 loc) · 2.88 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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.12.0
- run: |
zig build test -Dci_target=${{matrix.os}}-${{matrix.arch}}
- run: |
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: |
zig build -Dci_target=macos-latest-aarch64 -p zig-out-macos-latest-aarch64
- run: |
zig build -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/*
- 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/*