-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (26 loc) · 862 Bytes
/
linux.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
name: Linux Build
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++-12, clang++]
target: [debug, all, cgoto]
cxxstd: [c++11, c++14, c++17, c++20]
fail-fast: false
steps:
- name: Set up LLVM and GCC
run: |
sudo apt-get update
sudo apt-get install llvm
sudo apt-get install clang
sudo apt-get install llvm-dev # For development headers
sudo apt-get install gcc-12
- uses: actions/checkout@v2
- name: ${{ matrix.target }} ${{ matrix.compiler }} ${{ matrix.cxxstd }}
env:
CXX: ${{ matrix.compiler }}
TARGET: ${{ matrix.target }}
CXXSTD: ${{ matrix.cxxstd }}
run: eval "${CXX}" -v && echo "${CXXSTD}" && make clean && make "${TARGET}" CXXSTD="${CXXSTD}" -j && make tests && make benchmark