Skip to content

Commit c870bc4

Browse files
committed
fix
1 parent c762535 commit c870bc4

File tree

3 files changed

+130
-22
lines changed

3 files changed

+130
-22
lines changed

.github/workflows/linux.yml

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,47 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
read_params:
16-
name: 'Load action parameters'
15+
run:
16+
name: CMake v${{ matrix.cmake_version }} (${{ matrix.runs_on }})
1717
runs-on: ubuntu-latest
18-
outputs:
19-
matrix: ${{ steps.load_matrix.outputs.matrix }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
cmake_version:
22+
- '3.0'
23+
- '3.1'
24+
- '3.2'
25+
- '3.3'
26+
- '3.4'
27+
- '3.5'
28+
- '3.6'
29+
- '3.7'
30+
- '3.8'
31+
- '3.9'
32+
- '3.10'
33+
- '3.11'
34+
- '3.12'
35+
- '3.13'
36+
- '3.14'
37+
- '3.15'
38+
- '3.16'
39+
- '3.17'
40+
- '3.18'
41+
- '3.19'
42+
- '3.20'
43+
- '3.21'
44+
- '3.22'
45+
- '3.23'
46+
- '3.24'
47+
- '3.25'
48+
- '3.26'
49+
- '3.27'
50+
- '3.28'
51+
- '3.29'
52+
- '3.30'
53+
- '3.31'
54+
- '4.0'
55+
2056
steps:
2157
- name: 📥 Checkout
2258
uses: actions/checkout@v4
@@ -36,20 +72,6 @@ jobs:
3672
with:
3773
path: .github/workflows/env
3874
mode: ${{ github.workflow }}
39-
- name: load matrix
40-
id: load_matrix
41-
run: |
42-
echo "matrix=${{ env.MATRIX }}" >> "$GITHUB_OUTPUT"
43-
run:
44-
name: CMake v${{ matrix.cmake_version }} (${{ matrix.runs_on }})
45-
runs-on: ${{ matrix.runs_on }}
46-
needs: read_params
47-
strategy:
48-
fail-fast: false
49-
matrix: ${{ fromJson(needs.read_params.outputs.matrix) }}
50-
steps:
51-
- name: 📥 Checkout
52-
uses: actions/checkout@v4
5375
- name: ⬇️ Setup CMake v${{ matrix.cmake_version }}
5476
uses: lukka/get-cmake@latest
5577
with:

.github/workflows/macOS.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,40 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
# 3.2 to 3.6 have problem with SSL
22-
cmake_version: [0, 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]
21+
cmake_version:
22+
- '3.0'
23+
- '3.1'
24+
- '3.2'
25+
- '3.3'
26+
- '3.4'
27+
- '3.5'
28+
- '3.6'
29+
- '3.7'
30+
- '3.8'
31+
- '3.9'
32+
- '3.10'
33+
- '3.11'
34+
- '3.12'
35+
- '3.13'
36+
- '3.14'
37+
- '3.15'
38+
- '3.16'
39+
- '3.17'
40+
- '3.18'
41+
- '3.19'
42+
- '3.20'
43+
- '3.21'
44+
- '3.22'
45+
- '3.23'
46+
- '3.24'
47+
- '3.25'
48+
- '3.26'
49+
- '3.27'
50+
- '3.28'
51+
- '3.29'
52+
- '3.30'
53+
- '3.31'
54+
- '4.0'
2355

2456
steps:
2557

@@ -34,6 +66,17 @@ jobs:
3466
uses: xom9ikk/dotenv@v2
3567
with:
3668
path: .github/workflows/env
69+
- name: Check .env.${{ github.workflow }} file existence
70+
id: check_file
71+
uses: andstor/file-existence-action@v3
72+
with:
73+
files: .github/workflows/env/.env.${{ github.workflow }}
74+
- name: 📂 Load .env.${{ github.workflow }} file
75+
if: steps.check_file.outputs.files_exists == 'true'
76+
uses: xom9ikk/dotenv@v2
77+
with:
78+
path: .github/workflows/env
79+
mode: ${{ github.workflow }}
3780

3881
- name: ⬇️ Setup CMake
3982
uses: lukka/get-cmake@latest

.github/workflows/windows.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,61 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
cmake_version: [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]
21+
cmake_version:
22+
- '3.0'
23+
- '3.1'
24+
- '3.2'
25+
- '3.3'
26+
- '3.4'
27+
- '3.5'
28+
- '3.6'
29+
- '3.7'
30+
- '3.8'
31+
- '3.9'
32+
- '3.10'
33+
- '3.11'
34+
- '3.12'
35+
- '3.13'
36+
- '3.14'
37+
- '3.15'
38+
- '3.16'
39+
- '3.17'
40+
- '3.18'
41+
- '3.19'
42+
- '3.20'
43+
- '3.21'
44+
- '3.22'
45+
- '3.23'
46+
- '3.24'
47+
- '3.25'
48+
- '3.26'
49+
- '3.27'
50+
- '3.28'
51+
- '3.29'
52+
- '3.30'
53+
- '3.31'
54+
- '4.0'
2255

2356
steps:
2457

2558
- name: 📥 Checkout
2659
uses: actions/checkout@v4
27-
2860
- name: 📂 Load .env file
2961
if: hashFiles('.github/workflows/env/.env') != ''
3062
uses: xom9ikk/dotenv@v2
3163
with:
3264
path: .github/workflows/env
65+
- name: Check .env.${{ github.workflow }} file existence
66+
id: check_file
67+
uses: andstor/file-existence-action@v3
68+
with:
69+
files: .github/workflows/env/.env.${{ github.workflow }}
70+
- name: 📂 Load .env.${{ github.workflow }} file
71+
if: steps.check_file.outputs.files_exists == 'true'
72+
uses: xom9ikk/dotenv@v2
73+
with:
74+
path: .github/workflows/env
75+
mode: ${{ github.workflow }}
3376

3477
- name: ⬇️ Setup Visual Studio
3578
uses: ilammy/msvc-dev-cmd@v1.13.0

0 commit comments

Comments
 (0)