Skip to content

Commit

Permalink
Fix TestLocalToolchain jobs for release push (#3131)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tautschnig committed Apr 6, 2024
1 parent b329c85 commit 5490933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Get toolchain version used to setup kani
run: |
tar zxvf ${{ matrix.prev_job.bundle }}
DATE=$(cat ./kani-latest/rust-toolchain-version | cut -d'-' -f2,3,4)
DATE=$(cat ./kani-${{ matrix.prev_job.version }}/rust-toolchain-version | cut -d'-' -f2,3,4)
echo "Nightly date: $DATE"
echo "DATE=$DATE" >> $GITHUB_ENV
Expand Down

0 comments on commit 5490933

Please sign in to comment.