diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-10-18 16:14:12 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-10-21 09:08:20 +0200 |
| commit | c32e72ab7ce0940f36060b79891471ad32dfd703 (patch) | |
| tree | b6ab197e420d4ea21424e7f0ddd813a11e665877 | |
| parent | e71e1450b8c891ff23c1120ace2c13ddd5c77342 (diff) | |
| download | mullvadvpn-c32e72ab7ce0940f36060b79891471ad32dfd703.tar.xz mullvadvpn-c32e72ab7ce0940f36060b79891471ad32dfd703.zip | |
Update Rust before running end-to-end tests
| -rw-r--r-- | .github/workflows/desktop-e2e.yml | 5 | ||||
| -rwxr-xr-x | test/scripts/ci-runtests.sh | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml index d386078d4e..1a1abdcbb0 100644 --- a/.github/workflows/desktop-e2e.yml +++ b/.github/workflows/desktop-e2e.yml @@ -270,6 +270,11 @@ jobs: node-version-file: gui/package.json cache: 'npm' cache-dependency-path: gui/package-lock.json + - name: Install Rust + uses: actions-rs/toolchain@v1.0.6 + with: + toolchain: stable + default: true - name: Build app run: ./build.sh - name: Build test executable diff --git a/test/scripts/ci-runtests.sh b/test/scripts/ci-runtests.sh index 4aeab28271..88a8944164 100755 --- a/test/scripts/ci-runtests.sh +++ b/test/scripts/ci-runtests.sh @@ -13,6 +13,12 @@ fi TEST_OS=$1 +if [[ "$(uname -s)" == "Darwin" ]]; then + # NOTE: We only do this on macOS since we use containers otherwise + echo "Updating Rust toolchain" + rustup update +fi + # shellcheck source=test/scripts/test-utils.sh source "test-utils.sh" |
