-
Notifications
You must be signed in to change notification settings - Fork 197
66 lines (58 loc) · 1.69 KB
/
fedora.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Fedora
on:
push:
branches:
- master
paths-ignore:
- '**.md'
- 'docs/**'
- 'scripts/**'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- 'docs/**'
- 'scripts/**'
jobs:
build:
runs-on: ubuntu-latest
container: fedora:40
strategy:
fail-fast: false
matrix:
cxx: [g++]
build_type: [Debug, Release]
std: [23]
with_tests: [ON]
include:
- cxx: g++
install: |
dnf --setopt=retries=5 update -y
dnf --setopt=retries=5 install -y gcc-c++ cmake make
steps:
- uses: actions/checkout@v4
- name: Install dependencies and create build environment
run: |
${{ matrix.install }}
mkdir -p ${{runner.workspace}}/build
ls -l ${{runner.workspace}}
- name: Configure
env:
CXX: ${{matrix.cxx}}
CXXFLAGS: ${{matrix.cxxflags}}
run: |
cd ${{runner.workspace}}/build
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.cmake_options}} \
-DCMAKE_CXX_STANDARD=${{matrix.std}} -DQUILL_BUILD_TESTS=${{matrix.with_tests}} \
-DQUILL_BUILD_EXAMPLES=ON -DQUILL_VERBOSE_MAKEFILE=ON $GITHUB_WORKSPACE
- name: Build
run: |
cd ${{runner.workspace}}/build
cmake --build . --config ${{ matrix.build_type }} --parallel $(nproc)
- name: Test
run: |
cd ${{runner.workspace}}/build
ctest --build-config ${{ matrix.build_type }} ${{ matrix.ctest_options }} --parallel $(nproc) --output-on-failure
env:
CTEST_OUTPUT_ON_FAILURE: True