CI: Ubuntu test fixed (LLVM/Clang 19) #55
Workflow file for this run
This file contains hidden or 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: | |
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 |