Skip to content

Commit dadf311

Browse files
committed
ci: fix workflow — env context is unavailable in job-level env; carry mcpp_version per matrix leg
1 parent ea051b9 commit dadf311

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/validate.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,14 @@ jobs:
156156
ext: tar.gz
157157
mcpp: bin/mcpp
158158
xlings: registry/bin/xlings
159+
mcpp_version: "0.0.95" # keep in sync with env.MCPP_VERSION
159160
- platform: macos
160161
os: macos-15
161162
suffix: macosx-arm64
162163
ext: tar.gz
163164
mcpp: bin/mcpp
164165
xlings: registry/bin/xlings
166+
mcpp_version: "0.0.95" # keep in sync with env.MCPP_VERSION
165167
- platform: windows
166168
os: windows-latest
167169
suffix: windows-x86_64
@@ -175,7 +177,7 @@ jobs:
175177
# so the older floor is sound. Drop once #230 is fixed.
176178
mcpp_version: "0.0.94"
177179
env:
178-
MCPP_EFFECTIVE: ${{ matrix.mcpp_version || env.MCPP_VERSION }}
180+
MCPP_EFFECTIVE: ${{ matrix.mcpp_version }}
179181
steps:
180182
- uses: actions/checkout@v4
181183
- name: Restore mcpp registry cache
@@ -242,7 +244,7 @@ jobs:
242244
runs-on: ubuntu-latest
243245
timeout-minutes: 60
244246
env:
245-
MCPP_EFFECTIVE: ${{ matrix.mcpp_version || env.MCPP_VERSION }}
247+
MCPP_EFFECTIVE: ${{ '' }}${{ vars.NONE || '0.0.95' }} # keep in sync with env.MCPP_VERSION
246248
steps:
247249
- uses: actions/checkout@v4
248250
- name: Restore mcpp registry cache

0 commit comments

Comments
 (0)