Skip to content

Commit 2a8559e

Browse files
committed
ci: fix invalid workflow — the env context is unavailable in job-level env; carry mcpp_version explicitly per matrix leg (windows stays 0.0.94, mcpp#230)
1 parent 13aa71d commit 2a8559e

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
@@ -240,7 +242,7 @@ jobs:
240242
runs-on: ubuntu-latest
241243
timeout-minutes: 60
242244
env:
243-
MCPP_EFFECTIVE: ${{ matrix.mcpp_version || env.MCPP_VERSION }}
245+
MCPP_EFFECTIVE: "0.0.95" # keep in sync with env.MCPP_VERSION
244246
steps:
245247
- uses: actions/checkout@v4
246248
- name: Restore mcpp registry cache

0 commit comments

Comments
 (0)