diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-02-17 16:28:06 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-02-25 12:07:10 +0100 |
| commit | 154d88fca3bd172395d33117631aba92729b3354 (patch) | |
| tree | a123160411c1d3ffd998e75499922e8c41328128 | |
| parent | 3a4cfe24bea608cc5c1be33dfa5692d47dafe9df (diff) | |
| download | mullvadvpn-154d88fca3bd172395d33117631aba92729b3354.tar.xz mullvadvpn-154d88fca3bd172395d33117631aba92729b3354.zip | |
Cache Cargo artifacts between builds
| -rw-r--r-- | .github/workflows/desktop-e2e.yml | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml index caebe615f9..ecc2819dc4 100644 --- a/.github/workflows/desktop-e2e.yml +++ b/.github/workflows/desktop-e2e.yml @@ -124,10 +124,22 @@ jobs: - name: Checkout submodules run: | git config --global --add safe.directory '*' - git submodule update --init --depth=1 dist-assets/binaries - git submodule update --init wireguard-go-rs/libwg/wireguard-go + git submodule update --init --depth=1 + - uses: actions/cache@v4 + id: cache-app-cargo-artifacts + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build app - run: ./build.sh + run: | + export CARGO_TARGET_DIR=target/ + ./build.sh - name: Build test executable run: ./desktop/packages/mullvad-vpn/scripts/build-test-executable.sh - name: Upload app @@ -166,9 +178,6 @@ jobs: name: mullvad-version-linux path: ./bin/mullvad-version if-no-files-found: error - - name: Clean up Cargo artifacts - run: | - cargo clean build-test-manager-linux: name: Build Test Manager @@ -265,12 +274,12 @@ jobs: run: | ls -la ${{ github.workspace }}/bin shell: bash -# - name: Download App -#uses: actions/download-artifact@v4 -#if: ${{ needs.build-linux-app.result == 'success' }} - #with: - #name: linux-build - #path: ~/.cache/mullvad-test/packages + - name: Download App + uses: actions/download-artifact@v4 + if: ${{ needs.build-linux-app.result == 'success' }} + with: + name: linux-build + path: ~/.cache/mullvad-test/packages - name: Run end-to-end tests shell: bash -ieo pipefail {0} run: | |
