-
Notifications
You must be signed in to change notification settings - Fork 2.1k
92 lines (89 loc) · 2.75 KB
/
amd64_cmake_glop_cpp.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: amd64 CMake Glop C++
on: [push, pull_request, workflow_dispatch]
jobs:
docker:
name: Docker • CMake • Glop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build env image
run: make --directory=cmake glop_env
- name: Build devel image
run: make --directory=cmake glop_devel
- name: Build project
run: make --directory=cmake glop_build
- name: Test project
run: make --directory=cmake glop_test
- name: Build Install env image
run: make --directory=cmake glop_install_env
- name: Build Install devel image
run: make --directory=cmake glop_install_devel
- name: Build Install
run: make --directory=cmake glop_install_build
- name: Test Install
run: make --directory=cmake glop_install_test
# ref: https://github.com/actions/runner-images
native:
strategy:
matrix:
cmake: [
{
runner: "ubuntu-latest",
generator: "Unix Makefiles",
config: Release,
build_target: all,
test_target: test,
install_target: install
},
{
runner: "macos-13", # last macos intel based runner
generator: "Xcode",
config: Release,
build_target: ALL_BUILD,
test_target: RUN_TESTS,
install_target: install
},
{
runner: "macos-latest", # macos arm64 based runner
generator: "Xcode",
config: Release,
build_target: ALL_BUILD,
test_target: RUN_TESTS,
install_target: install
},
{
runner: "windows-latest",
generator: "Visual Studio 17 2022",
config: Release,
build_target: ALL_BUILD,
test_target: RUN_TESTS,
install_target: INSTALL
},
]
fail-fast: false
name: ${{ matrix.cmake.runner }} • CMake • Glop
runs-on: ${{ matrix.cmake.runner }}
steps:
- uses: actions/checkout@v4
- name: Check cmake
run: cmake --version
- name: Configure
run: >
cmake -S. -Bbuild
-G "${{ matrix.cmake.generator }}"
-DCMAKE_BUILD_TYPE=${{ matrix.cmake.config }}
-DBUILD_DEPS=ON
-DBUILD_CXX=OFF -DBUILD_GLOP=ON
-DCMAKE_INSTALL_PREFIX=install
- name: Build
run: >
cmake --build build
--config ${{ matrix.cmake.config }}
--target ${{ matrix.cmake.build_target }}
-v -j2
- name: Install
run: >
cmake --build build
--config ${{ matrix.cmake.config }}
--target ${{ matrix.cmake.install_target }}
-v