Skip to content

First draft of CI workflow #2

First draft of CI workflow

First draft of CI workflow #2

Workflow file for this run

name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
platform: [pc-bios qemu-virt-rv32 qemu-virt-arm hosted-x86-linux]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- name: Build ${{ matrix.platform }}
run: |
zig build ${{ matrix.platform }}
- name: Upload disk image
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}
path: zig-out/${{ matrix.platform }}
if-no-files-found: warn
retention-days: 7