-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (31 loc) · 1.07 KB
/
zigbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 && \
zig build test --summary all -freference-trace