updated readme #8
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: Build & Test | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Download & Extract packages (Linux) | |
if: startsWith(matrix.runs-on, 'ubuntu') | |
run: | | |
curl -LO https://github.com/kassane/zig-mos-bootstrap/releases/download/0.2/zig-mos-x86_64-linux-musl-baseline.tar.xz | |
tar -xf zig-mos-x86_64-linux-musl-baseline.tar.xz | |
echo "$PWD/zig-mos-x86_64-linux-musl-baseline" >> $GITHUB_PATH | |
- name: Download & Extract packages (MacOS M1) | |
if: startsWith(matrix.runs-on, 'macos') | |
run: | | |
curl -LO https://github.com/kassane/zig-mos-bootstrap/releases/download/0.2/zig-mos-aarch64-macos-apple_m1.tar.xz | |
tar -xf zig-mos-aarch64-macos-apple_m1.tar.xz | |
echo "$PWD/zig-mos-aarch64-macos-apple_m1" >> $GITHUB_PATH | |
- name: Build | |
run: zig build --build-file $PWD/tests/build.zig --summary all -freference-trace | |
- name: Run | |
if: ${{ failure() }} | |
run: | | |
zig build rtsan --build-file $PWD/tests/build.zig -freference-trace | |
zig build asan --build-file $PWD/tests/build.zig -freference-trace |