Skip to content

rework ci

rework ci #244

Workflow file for this run

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
- if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v4
with:
name: zigup-x86_64-windows
path: zig-out/zigup-x86_64-windows.zip
- if: ${{ matrix.os == 'linux-latest' }}
uses: actions/upload-artifact@v4
with:
name: zigup-x86_64-linux
path: zig-out/zigup-x86_64-linux.zip
- if: ${{ matrix.os == 'linux-latest' }}
uses: actions/upload-artifact@v4
with:
name: zigup-aarch64-linux
path: zig-out/zigup-aarch64-linux.zip
- if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v4
with:
name: zigup-x86_64-macos
path: zig-out/zigup-x86_64-macos.zip
- if: ${{ matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v4
with:
name: zigup-aarch64-macos
path: zig-out/zigup-aarch64-macos.zip