Skip to content

Commit 293545e

Browse files
committed
ci: yaml anchors
1 parent 5ec7eb9 commit 293545e

File tree

5 files changed

+26
-23
lines changed

5 files changed

+26
-23
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env:
66
CTEST_PARALLEL_LEVEL: 0
77
CMAKE_INSTALL_PREFIX: ~/libs
88
CMAKE_PREFIX_PATH: ~/libs
9+
CMAKE_GENERATOR: Ninja
910

1011
on:
1112
push:
@@ -43,25 +44,28 @@ jobs:
4344
gcc: 14
4445
- os: macos-latest
4546
shared: true
46-
gcc: 14
47+
gcc: 15
4748
- os: macos-latest
4849
shared: false
49-
gcc: 14
50+
gcc: 15
5051

5152
runs-on: ${{ matrix.os }}
5253

5354
env:
5455
FC: gfortran-${{ matrix.gcc }}
5556

5657
steps:
57-
- uses: actions/checkout@v4
58+
- &checkout
59+
uses: actions/checkout@v5
5860

5961
- name: GCC (Linux)
6062
if: runner.os == 'Linux'
6163
run: echo "CC=gcc-${{ matrix.gcc }}" >> $GITHUB_ENV
6264

63-
- uses: ./.github/workflows/composite-pkg
64-
- uses: ./.github/workflows/composite-unix
65+
- &pkg
66+
uses: ./.github/workflows/composite-pkg
67+
- &unix
68+
uses: ./.github/workflows/composite-unix
6569

6670

6771
gcc-old:
@@ -78,9 +82,9 @@ jobs:
7882
FC: gfortran-${{ matrix.gcc }}
7983

8084
steps:
81-
- uses: actions/checkout@v4
82-
- uses: ./.github/workflows/composite-pkg
83-
- uses: ./.github/workflows/composite-unix
85+
- *checkout
86+
- *pkg
87+
- *unix
8488

8589

8690
linux-flang:
@@ -107,7 +111,7 @@ jobs:
107111
- name: install Flang
108112
run: sudo apt install --no-install-recommends clang-${{ matrix.llvm-version }} flang-${{ matrix.llvm-version }}
109113

110-
- uses: actions/checkout@v4
114+
- *checkout
111115

112116
- name: CMake build & test
113117
run: cmake --workflow nofind
@@ -127,7 +131,7 @@ jobs:
127131
sudo apt update
128132
sudo apt install --no-install-recommends valgrind libhdf5-dev
129133
130-
- uses: actions/checkout@v4
134+
- *checkout
131135

132136
- run: ctest -Dexclude_label="deflate|python" -S memcheck.cmake -VV
133137

@@ -140,7 +144,7 @@ jobs:
140144
timeout-minutes: 10
141145

142146
steps:
143-
- uses: actions/checkout@v4
147+
- *checkout
144148
- uses: actions/setup-python@v5
145149
with:
146150
python-version: '3.x'
@@ -176,7 +180,7 @@ jobs:
176180

177181
steps:
178182

179-
- uses: actions/checkout@v4
183+
- *checkout
180184

181185
- name: prereqs
182186
run: |

.github/workflows/ci_build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: build
22

33
env:
4-
CMAKE_TLS_VERIFY: true
54
HOMEBREW_NO_INSTALL_CLEANUP: 1
65
CTEST_NO_TESTS_ACTION: error
76
CTEST_PARALLEL_LEVEL: 0
8-
CMAKE_BUILD_PARALLEL_LEVEL: 4
97
CMAKE_INSTALL_PREFIX: ~/libs
108
CMAKE_PREFIX_PATH: ~/libs
9+
CMAKE_GENERATOR: Ninja
1110

1211

1312
on:
@@ -33,11 +32,11 @@ jobs:
3332
runs-on: ${{ matrix.os}}
3433

3534
steps:
36-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3736

38-
- name: GCC 14 (macOS)
37+
- name: GCC (macOS)
3938
if: runner.os == 'macOS'
40-
run: echo "FC=gfortran-14" >> $GITHUB_ENV
39+
run: echo "FC=gfortran-15" >> $GITHUB_ENV
4140

4241
- name: Configure HDF5 library
4342
run: >-

.github/workflows/ci_fpm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
sudo apt update
2828
sudo apt install --no-install-recommends libhdf5-dev
2929
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
3131

3232
- run: fpm build

.github/workflows/ci_windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: ci_windows
33
env:
44
CTEST_NO_TESTS_ACTION: error
55
CTEST_PARALLEL_LEVEL: 0
6-
CMAKE_BUILD_PARALLEL_LEVEL: 4
6+
CMAKE_GENERATOR: Ninja
77

88
on:
99
push:
@@ -47,10 +47,10 @@ jobs:
4747
- name: Put MSYS2_MinGW64 on PATH
4848
run: echo "${{ steps.msys2.outputs.msys2-location }}/ucrt64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
4949

50-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v5
5151

5252
- name: config
53-
run: cmake --preset default -G "MinGW Makefiles"
53+
run: cmake --preset default
5454
env:
5555
HDF5_ROOT: ${{ steps.msys2.outputs.msys2-location }}/ucrt64/
5656

.github/workflows/oneapi-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343

4444
strategy:
4545
matrix:
46-
oneapi: [2025.1]
46+
oneapi: [2025.2]
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@v5
4949

5050
- uses: actions/setup-python@v5
5151
with:

0 commit comments

Comments
 (0)