some fixes #20
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: Unit tests Zig | |
on: [push, pull_request] | |
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 | |
- uses: goto-bus-stop/setup-zig@v2 | |
- name: Install LLVM (Linux) | |
if: startsWith(matrix.runs-on, 'ubuntu') | |
run: | | |
sudo apt update | |
sudo apt install -y wget | |
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc | |
sudo apt update | |
sudo apt install -y llvm-17 | |
- name: Install LLVM (MacOS) | |
if: startsWith(matrix.runs-on, 'macos') | |
run: brew install llvm | |
- name: Build Summary | |
run: zig build -DExamples --summary all -freference-trace |