take two baby #2
Workflow file for this run
This file contains 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: Compilation | |
on: | |
push: | |
branches: | |
- ci-compiling | |
pull_request: | |
branches: | |
- ci-compiling | |
jobs: | |
build-test: | |
name: Testing compilation | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# continue other jobs if any fail | |
fail-fast: false | |
# perform job for all combinations of... | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
precision: [1, 2, 4] | |
# assign each OS a bespoke compilter | |
include: | |
- os: ubuntu-latest | |
compiler: g++ | |
- os: macos-latest | |
compiler: clang | |
- os: windows-latest | |
compiler: cl | |
steps: | |
- name: Get QuEST | |
uses: actions/checkout@v4 | |
- name: Make build directory | |
run: mkdir build_dir | |
- name: Run CMake | |
run: cmake .. -DENABLE_MULTITHREADING=OFF -DFLOAT_PRECISION=${{ matrix.precision }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} | |
working-directory: build_dir | |
- name: Run Make | |
run: make | |
working-directory: build_dir |