-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.19 KB
/
Linux-Clang.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
name: Linux Clang
env:
CMAKE_VERSION: 3.16.x
CMAKE_BUILD_TYPE: Release
CMAKE_BUILD_PREFIX: "${{ github.workspace }}/build"
on:
push:
pull_request:
schedule:
#Every Sunday at midnight
- cron: '0 0 * * 0'
jobs:
# Checkout apply clang-format and upload artifact
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler-version: [[clang-10, clang++-10], [clang-11, clang++-11]]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: '${{env.CMAKE_VERSION}}'
- name: Configure
env:
CC: ${{ matrix.compiler-version[0] }}
CXX: ${{ matrix.compiler-version[1] }}
run: cmake -S ${{ github.workspace }} -B ${{ env.CMAKE_BUILD_PREFIX }}/ -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -D BUILD_TESTS=OFF
- name: Build
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel 2
- name: Run tests
working-directory: ${{ env.CMAKE_BUILD_PREFIX }}
run: ctest -C ${{ env.CMAKE_BUILD_TYPE }} -j2 -VV --output-on-failure