Unit tests (Ubuntu) #448
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 (Ubuntu) | |
# Should run at 2am Pacific time | |
on: | |
pull_request: | |
branches: [ "main" ] | |
schedule: | |
- cron: "0 9 * * *" | |
workflow_dispatch: | |
jobs: | |
ubuntu-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y zlib1g-dev libdeflate-dev | |
- name: Configure for unit tests | |
run: | | |
cmake -B build \ | |
-DCMAKE_CXX_COMPILER=g++-14 \ | |
-DUNIT_TESTS=on \ | |
-DCMAKE_BUILD_TYPE=Build | |
- name: Build | |
run: | | |
cmake --build build -j4 | |
- name: Run the tests | |
run: | | |
ctest --test-dir build/lib --output-on-failure | |
ctest --test-dir build/cli --output-on-failure |