rework ci #237
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |