-
Notifications
You must be signed in to change notification settings - Fork 142
49 lines (38 loc) · 1.05 KB
/
compilation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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