-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.4 KB
/
linux.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
name: Linux builds
on:
push:
branches:
- master
- develop
- githubactions*
- feature/**
- fix/**
- pr/**
jobs:
build-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
compiler: [g++-12, g++-13]
env:
CONAN_USER_HOME: "${{ github.workspace }}/release/"
CONAN_USER_HOME_SHORT: "${{ github.workspace }}/release/short"
steps:
- uses: actions/checkout@v2
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.os }}-${{ matrix.compiler }}
- name: Using the builtin GitHub Cache Action for .conan
id: cache-conan
uses: actions/cache@v1
env:
cache-name: cache-conan-modules
with:
path: ${{ env.CONAN_USER_HOME }}
key: ${{ runner.os }}-builder-${{ env.cache-name }}
restore-keys: ${{ runner.os }}-builder-${{ env.cache-name }}
- name: Conan installation
id: conan
uses: turtlebrowser/[email protected]
- name: Configure, Build, and Test Project
uses: threeal/[email protected]
with:
run-build: true
run-test: true
options: CMAKE_PROJECT_TOP_LEVEL_INCLUDES=cmake/conan_provider.cmake CMAKE_BUILD_TYPE=Release CMAKE_CXX_COMPILER_LAUNCHER=ccache
env:
CXX: ${{ matrix.compiler }}