Skip to content

Commit 96031ef

Browse files
committed
yaml anchor
1 parent ea4fc8a commit 96031ef

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- "**/CMakeLists.txt"
1717
- "**.cmake"
1818
- ".github/workflows/ci.yml"
19-
- ".github/workflows/composite-build/*"
19+
2020
workflow_dispatch:
2121

2222
# avoid wasted runs
@@ -37,7 +37,7 @@ jobs:
3737
shared: [true, false]
3838
cpp: [true, false]
3939

40-
env:
40+
env: &gcc-env
4141
CC: gcc-${{ matrix.gcc-version }}
4242
CXX: g++-${{ matrix.gcc-version }}
4343
FC: gfortran-${{ matrix.gcc-version }}
@@ -95,10 +95,7 @@ jobs:
9595
shared: true
9696
cpp: true
9797

98-
env:
99-
CC: gcc-${{ matrix.gcc-version }}
100-
CXX: g++-${{ matrix.gcc-version }}
101-
FC: gfortran-${{ matrix.gcc-version }}
98+
env: *gcc-env
10299

103100
steps:
104101
- uses: actions/checkout@v4
@@ -121,11 +118,7 @@ jobs:
121118
shared: [false]
122119
cpp: [true, false]
123120

124-
env:
125-
CC: gcc-${{ matrix.gcc-version }}
126-
CXX: g++-${{ matrix.gcc-version }}
127-
FC: gfortran-${{ matrix.gcc-version }}
128-
121+
env: *gcc-env
129122

130123
steps:
131124
- name: install compilers
@@ -158,10 +151,7 @@ jobs:
158151
cpp: [true, false]
159152
shared: [false]
160153

161-
env:
162-
CC: gcc-${{ matrix.gcc-version }}
163-
CXX: g++-${{ matrix.gcc-version }}
164-
FC: gfortran-${{ matrix.gcc-version }}
154+
env: *gcc-env
165155

166156
steps:
167157

.github/workflows/ci_meson.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
python-version: '3.x'
3333

34-
- run: pip install meson ninja
34+
- run: pip install meson
3535

3636
- run: meson setup -Dtest=true -Dcpp=${{ matrix.cpp }} build
3737

.github/workflows/ci_windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
- "**/CMakeLists.txt"
1717
- "**.cmake"
1818
- ".github/workflows/ci_windows.yml"
19-
- ".github/workflows/composite-build/*"
2019
- "!memcheck.cmake"
2120
workflow_dispatch:
2221

@@ -98,7 +97,7 @@ jobs:
9897
if: failure()
9998
uses: actions/upload-artifact@v4
10099
with:
101-
name: cpp-${{ matrix.cpp-std }}-${{ matrix.cpp }}-shared-${{ matrix.shared }}-${{ runner.os }}-CMakeConfigureLog.yaml
100+
name: cpp-${{ matrix.cpp }}-shared-${{ runner.os }}-CMakeConfigureLog.yaml
102101
path: build/CMakeFiles/CMakeConfigureLog.yaml
103102

104103
- name: Debug workflow

0 commit comments

Comments
 (0)