Skip to content

Commit

Permalink
Clean up toolchain after build (leave runners' rustup in working cond…
Browse files Browse the repository at this point in the history
…ition)
  • Loading branch information
jberthold committed Nov 17, 2024
1 parent 471fd72 commit 1487672
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ jobs:
- name: 'Run smir integration tests'
run: |
make integration-test
- name: 'Clean up toolchain'
if: always()
run: |
make rustup-clear-toolchain
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ rust_set_toolchain: ${RUST_LIB_DIR}
rustup override set "${TOOLCHAIN_NAME}"
echo ${STAGE} > ${STAGE_FILE}

.PHONY: rustup-clear-toolchain
rustup-clear-toolchain:
rustup override unset
rustup override unset --nonexistent
rustup toolchain uninstall "${TOOLCHAIN_NAME}"

generate_ui_tests:
mkdir -p "${RUST_DIR}"/tests
cd "${RUST_SRC}"; ./get_runpass.sh tests/ui > "${RUST_DIR}"/tests_ui_sources
Expand Down

0 comments on commit 1487672

Please sign in to comment.