-
-
Notifications
You must be signed in to change notification settings - Fork 163
58 lines (51 loc) · 1.52 KB
/
linux-gxx-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
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
name: g++
on:
push:
branches:
- 'main'
workflow_dispatch:
pull_request:
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build docker image
run: docker build -t test .
- name: Run docker container
run: docker run test
external_dependencies:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install conan and ninja
run: pip install conan ninja
- name: Install libraries dependencies
run: |
CC=gcc-13 CXX=g++-13 conan profile detect && \
conan install -r conancenter -s compiler.cppstd=20 \
--requires=fmt/10.2.1 --requires=gtest/1.14.0 \
-g CMakeToolchain -g CMakeDeps \
--build=missing -of conan \
-c tools.build:compiler_executables='{"c": "gcc-13", "cxx": "g++-13"}'
- name: CMake build
run: |
cmake -B build -S . -G Ninja \
-DUSE_SYSTEM_DEPENDENCIES=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=g++-13 \
-DCMAKE_C_COMPILER=gcc-13 \
-DBUILD_TESTING:BOOL=ON \
-DCMAKE_TOOLCHAIN_FILE=conan/conan_toolchain.cmake && \
cmake --build build