Skip to content

Add artifact building #6

Add artifact building

Add artifact building #6

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- run: zig build test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
- run: zig fmt --check src/*.zig
build:
strategy:
fail-fast: false
matrix:
target: [ x86_64-linux, aarch64-linux, riscv64-linux, x86_64-windows, aarch64-macos ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Zig
uses: goto-bus-stop/[email protected]
with:
version: master
- name: Build
run: zig build -Doptimize=ReleaseSmall -Dtarget=${{ matrix.target }}
- name: Archive executable
uses: actions/upload-artifact@v3
with:
name: pc
path: zig-out/bin/*