-
Notifications
You must be signed in to change notification settings - Fork 63
36 lines (36 loc) · 1.04 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
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 ci
- uses: actions/upload-artifact@v2
with:
name: zigup ${{ matrix.os }}-${{ matrix.arch }}
path: zig-out/bin/*
- if: ${{ matrix.os == 'linux-latest' }}
uses: actions/upload-artifact@v2
with:
name: zigup x86_64-linux
path: zig-out/x86_64-linux/bin/*
- if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v2
with:
name: zigup x86_64-macos
path: zig-out/x86_64-macos/bin/*
- if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v2
with:
name: zigup x86_64-windows
path: zig-out/x86_64-windows/bin/*