Skip to content

CI: make workflow agnostic of OS #52

CI: make workflow agnostic of OS

CI: make workflow agnostic of OS #52

Workflow file for this run

name: Run tests

Check failure on line 1 in .github/workflows/run-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/run-tests.yml

Invalid workflow file

(Line: 38, Col: 9): There's not enough info to determine what you meant. Add one of these properties: cancel, run, shell, uses, wait, wait-all, with, working-directory
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
build_type: [Debug, Release]
runs-on: ${{ matrix.os }}
name: Run Tests (${{ matrix.os }}, ${{ matrix.build_type }})
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup LLVM
uses: ZhongRuoyu/setup-llvm@v0
with:
llvm-version: 22
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.94.0
- name: Setup Python
uses: actions/setup-python@v6
with:
cache: 'pip'
- name: Install Python dependencies
- run: pip install tomli
- name: Configure
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DLIT_FLAGS="-v" \
-GNinja ..
- name: Build
run: ninja
working-directory: build
- name: Run unit tests
run: ninja check
working-directory: build
- name: Check rules
run: ninja check-rules
working-directory: build
- name: Check benchmarks (don't run)
run: ninja check-benchmarks
working-directory: build
env:
SKIP_RUN: 1