CI #33
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| # Run every mondays at 6 am | |
| - cron: '0 6 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| job: | |
| name: ${{matrix.image}} OS | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: ['ubuntu:focal', 'ubuntu:jammy', 'ubuntu:noble', 'debian:bullseye', 'debian:bookworm', 'debian:trixie'] | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ${{matrix.image}} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Install dependencies | |
| run: | | |
| apt update | |
| DEBIAN_FRONTEND=noninteractive apt install -y git build-essential cmake libboost-dev libboost-system-dev | |
| - name: Build | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_STDBIN_EXAMPLES=ON -DBUILD_TESTING=ON .. | |
| make | |
| - name: Test | |
| run: | | |
| cd build | |
| make test |