1
1
name : Build, unittest
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ pull_request :
6
+ branches :
7
+ - main
4
8
5
9
6
10
jobs :
9
13
matrix :
10
14
os : [windows-latest]
11
15
platform : [x64]
16
+ python-version : ['3.7']
12
17
configuration : [Release]
13
- name : ${{ matrix.os }}-CMake
18
+ name : ${{ matrix.os }}-${{ matrix.python-version }}- CMake
14
19
runs-on : ${{ matrix.os }}
15
-
16
20
steps :
21
+ - name : Skip Duplicate Actions
22
+ uses : fkirc/skip-duplicate-actions@v5.3.1
17
23
- uses : actions/checkout@v4 # https://github.com/marketplace/actions/checkout
18
24
- name : Set up Python
19
25
uses : actions/setup-python@v5 # https://github.com/marketplace/actions/setup-python
20
26
with :
21
- python-version : ' 3.7 '
27
+ python-version : ${{ matrix.python-version }}
22
28
- name : configure
23
29
run : |
24
30
mkdir out
25
31
cd out
26
- cmake .. -DCMAKE_INSTALL_PREFIX=install\${{ matrix.platform }}-${{ matrix.configuration }} -DPYTHON_VERSION="3.7 "
32
+ cmake .. -DCMAKE_INSTALL_PREFIX=install\${{ matrix.platform }}-${{ matrix.configuration }} -DPYTHON_VERSION="${{ matrix.python-version }} "
27
33
- name : make
28
34
run : |
29
35
cd out
@@ -52,13 +58,15 @@ jobs:
52
58
runs-on : ${{ matrix.os }}
53
59
54
60
steps :
61
+ - name : Skip Duplicate Actions
62
+ uses : fkirc/skip-duplicate-actions@v5.3.1
55
63
- uses : actions/checkout@v4 # https://github.com/marketplace/actions/checkout
56
64
- name : configure CODA-OSS
57
65
run : |
58
66
mkdir externals\coda-oss\out
59
67
cd externals\coda-oss\out
60
68
cmake .. -DCMAKE_INSTALL_PREFIX=install\${{ matrix.platform }}-${{ matrix.configuration }} -DENABLE_PYTHON=OFF
61
- - name : make CODA-OSS
69
+ - name : build CODA-OSS
62
70
run : |
63
71
cd externals\coda-oss\out
64
72
cmake --build . --config ${{ matrix.configuration }} -j
@@ -84,22 +92,24 @@ jobs:
84
92
build-linux-cmake :
85
93
strategy :
86
94
matrix :
87
- os : [ubuntu-latest]
88
- name : ${{ matrix.os }}-CMake
95
+ os : [ubuntu-22.04]
96
+ python-version : ['3.7']
97
+ name : ${{ matrix.os }}-${{ matrix.python-version }}-CMake
89
98
runs-on : ${{ matrix.os }}
90
-
91
99
steps :
100
+ - name : Skip Duplicate Actions
101
+ uses : fkirc/skip-duplicate-actions@v5.3.1
92
102
- uses : actions/checkout@v4 # https://github.com/marketplace/actions/checkout
93
103
- name : Set up Python
94
104
uses : actions/setup-python@v5 # https://github.com/marketplace/actions/setup-python
95
105
with :
96
- python-version : ' 3.7 '
106
+ python-version : ${{ matrix.python-version }}
97
107
- name : configure
98
108
run : |
99
109
mkdir target
100
110
cd target
101
- cmake -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DPYTHON_VERSION=3.7 ..
102
- - name : make
111
+ cmake -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DPYTHON_VERSION=${{ matrix.python-version }} ..
112
+ - name : build
103
113
run : |
104
114
cd target
105
115
cmake --build . -j 8
0 commit comments