-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (42 loc) · 1.43 KB
/
compile.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
name: compile
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CONFIGURATION_DIRECTORY: ${{ github.workspace }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VCPKG_FEATURE_FLAGS: dependencygraph
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: 'build and run tests'
runs-on: ubuntu-22.04
container: ghcr.io/skaginn3x/skaginn3x/framework/tfc-toolchain:sha-6cd5f4c
strategy:
fail-fast: false
matrix:
preset_postfixes: [ gcc-debug, gcc-release, clang-debug, clang-release, gcc-debug-dynamic, clang-debug-dynamic ]
steps:
- uses: actions/checkout@v3
- name: start dbus
run: |
dbus-daemon --system
- name: Restore artifacts, or setup vcpkg (do not install any package)
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: '/opt/vcpkg'
vcpkgGitCommitId: 'be2d7f886aad895e282b59088a2dfca5f6e1c88a'
vcpkgJsonGlob: 'vcpkg.json'
- name: Run CMake consuming CMakePreset.json and vcpkg.json by mean of vcpkg.
uses: lukka/run-cmake@v10
with:
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
configurePreset: 'ci-${{ matrix.preset_postfixes }}'
buildPreset: 'build-ci-${{ matrix.preset_postfixes }}'
testPreset: 'test-ci-${{ matrix.preset_postfixes }}'