-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (25 loc) · 1020 Bytes
/
build.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
name: Test Scalr
on: push
jobs:
test:
runs-on: ubuntu-latest
container: gcc:${{matrix.gcc_version}}
strategy:
fail-fast: false
matrix:
gcc_version: [5, 6, 7, 8, 9, 10, 11, 12]
cmake_version: ["3.25.2"]
catch2_version: ["3.3.1"]
steps:
- uses: actions/checkout@v3
- name: Install CMake binary release
run: |
curl -L https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_version}}/cmake-${{matrix.cmake_version}}-linux-x86_64.sh > /tmp/cmake_install.sh
sh /tmp/cmake_install.sh --skip-license --prefix=/
- name: Build and install Catch2v3 from source
run: |
git clone --depth 1 --branch v${{matrix.catch2_version}} https://github.com/catchorg/Catch2.git /tmp/catch2
cmake -S/tmp/catch2 -B/tmp/catch2/build -DBUILD_TESTING=OFF -DCATCH_INSTALL_DOCS=OFF
cmake --build /tmp/catch2/build/ --target install -j$(nproc)
- name: Run unit tests
run: make test