-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 836 Bytes
/
linux.yml
File metadata and controls
43 lines (36 loc) · 836 Bytes
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
name: Linux
on:
push:
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'doc/**'
pull_request:
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'doc/**'
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler:
- g++-12
- clang++-15
build_type: [Release]
env:
CXX: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v3
- run: |
sudo apt-get update
sudo apt-get -y --no-upgrade install ${{ matrix.compiler }}
sudo apt-get -y install libgtest-dev
- run: cmake -E make_directory build
- working-directory: build/
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build .
ctest --output-on-failure