-
Notifications
You must be signed in to change notification settings - Fork 48
36 lines (31 loc) · 877 Bytes
/
c-cpp.yml
File metadata and controls
36 lines (31 loc) · 877 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
name: C/C++ CI
on:
push:
branches: [ "master", "v2.14-maint" ]
pull_request:
branches: [ "master", "v2.14-maint" ]
jobs:
build-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: configure
run: |
sudo apt install g++ liblzma-dev zlib1g-dev
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++
- name: make
run: make VERBOSE=1
- name: make check
run: make check CTEST_OUTPUT_ON_FAILURE=TRUE
build-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: configure
run: |
sudo apt install clang liblzma-dev zlib1g-dev
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
- name: make
run: make VERBOSE=1
- name: make check
run: make check CTEST_OUTPUT_ON_FAILURE=TRUE