@@ -3,15 +3,19 @@ name: amd64 Linux CMake Python
3
3
4
4
on : [push, pull_request, workflow_dispatch]
5
5
6
+ concurrency :
7
+ group : ${{github.workflow}}-${{github.ref}}
8
+ cancel-in-progress : true
9
+
6
10
# Building using the github runner environement directly.
7
11
jobs :
8
12
native :
9
13
strategy :
10
14
matrix :
11
15
cmake : [
12
- {generator : "Ninja ", config: Release, build_target: all, test_target: test, install_target: install },
13
- {generator : "Ninja Multi-Config ", config: Release, build_target: all, test_target: test, install_target: install },
14
- {generator : "Unix Makefiles ", config: Release, build_target: all, test_target: test, install_target: install },
16
+ {name : "Make ", generator: "Unix Makefiles", config: Release },
17
+ {name : "Ninja", generator: "Ninja", config: Release },
18
+ {name : "Ninja Multi ", generator: "Ninja Multi-Config", config: Release },
15
19
]
16
20
python : [
17
21
{version: "3.9"},
21
25
{version: "3.13"},
22
26
]
23
27
fail-fast : false
24
- name : amd64•Linux•${{matrix.cmake.generator}} •Python-${{matrix.python.version}}
28
+ name : amd64•Linux•CMake( ${{matrix.cmake.name}}) •Python-${{matrix.python.version}}
25
29
runs-on : ubuntu-latest
26
30
steps :
27
31
- uses : actions/checkout@v4
39
43
python-version : ${{matrix.python.version}}
40
44
- name : Update Path
41
45
run : echo "$HOME/.local/bin" >> $GITHUB_PATH
42
- - name : Check cmake
46
+ - name : Check CMake
43
47
run : cmake --version
44
48
- name : Configure
45
49
run : >
@@ -53,18 +57,24 @@ jobs:
53
57
run : >
54
58
cmake --build build
55
59
--config ${{matrix.cmake.config}}
56
- --target ${{matrix.cmake.build_target}}
60
+ --target all
57
61
-v -j2
58
62
- name : Test
59
63
run : >
60
64
CTEST_OUTPUT_ON_FAILURE=1
61
65
cmake --build build
62
66
--config ${{matrix.cmake.config}}
63
- --target ${{matrix.cmake.test_target}}
67
+ --target test
64
68
-v
65
69
- name : Install
66
70
run : >
67
71
cmake --build build
68
72
--config ${{matrix.cmake.config}}
69
- --target ${{matrix.cmake.install_target}}
73
+ --target install
70
74
-v
75
+
76
+ amd64_linux_cmake_python :
77
+ runs-on : ubuntu-latest
78
+ needs : native
79
+ steps :
80
+ - uses : actions/checkout@v4
0 commit comments