-
Notifications
You must be signed in to change notification settings - Fork 47
65 lines (50 loc) · 1.74 KB
/
ci.yaml
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
name: marnav CI
on:
pull_request:
push:
branches:
- master
jobs:
build-gcc:
runs-on: ubuntu-latest
container:
image: mariokonrad/marnav:gcc-12.2.0
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#docker-container-filesystem=
# Quote:
# > Note: GitHub Actions must be run by the default Docker user (root).
# > Ensure your Dockerfile does not set the USER instruction, otherwise
# > you will not be able to access GITHUB_WORKSPACE.
options: --user root
steps:
- name: print versions
run: |
git --version
echo "--------------------------------------------------------------------------------"
cmake --version
echo "--------------------------------------------------------------------------------"
ninja --version
echo "--------------------------------------------------------------------------------"
g++ --version
- uses: actions/checkout@v3
- name: configure
run: cmake --preset gcc-release -G Ninja
- name: build
run: cmake --build --preset gcc-release -j
- name: test
run: ctest --preset gcc-release
# TODO: clang
build-vs2022:
runs-on: windows-2022
steps:
- name: print versions
run: |
git --version
echo "--------------------------------------------------------------------------------"
cmake --version
- uses: actions/checkout@v3
- name: configure
run: cmake --preset vs2022-release-shared
- name: build
run: cmake --build --preset vs2022-release-shared
- name: test
run: ctest --preset vs2022-release-shared