Skip to content

Translate string literals in C and C++ #238

Translate string literals in C and C++

Translate string literals in C and C++ #238

Workflow file for this run

name: "Run tests"
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.95.0
components: rustfmt
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- 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