-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (37 loc) · 1.07 KB
/
zigbuild.yml
File metadata and controls
44 lines (37 loc) · 1.07 KB
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
37
38
39
40
41
42
43
44
name: Unit tests Zig
on:
push:
branches: [ main ]
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: mlugg/setup-zig@v1
- name: Install LLVM (Linux)
if: startsWith(matrix.runs-on, 'ubuntu')
run: |
sudo apt update
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19
rm llvm.sh
# Install necessary LLVM 19 development packages
sudo apt-get install -y libllvm19 llvm-19-dev libclang-19-dev clang-19
- 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
- name: Build Test
run: |
zig build test --summary all -freference-trace