Skip to content

Commit 5490933

Browse files
authored
Fix TestLocalToolchain jobs for release push (rust-lang#3131)
Upon pushing a release tag, we use the numeric version instead of "latest", which made `kani-latest` a non-existent folder. See https://github.com/model-checking/kani/actions/runs/8574249138 for such an example. Use the `version` variable instead, which will be set to "latest" or the numeric version as appropriate.
1 parent b329c85 commit 5490933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
- name: Get toolchain version used to setup kani
137137
run: |
138138
tar zxvf ${{ matrix.prev_job.bundle }}
139-
DATE=$(cat ./kani-latest/rust-toolchain-version | cut -d'-' -f2,3,4)
139+
DATE=$(cat ./kani-${{ matrix.prev_job.version }}/rust-toolchain-version | cut -d'-' -f2,3,4)
140140
echo "Nightly date: $DATE"
141141
echo "DATE=$DATE" >> $GITHUB_ENV
142142

0 commit comments

Comments
 (0)