diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-02-09 13:18:02 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-02-10 14:54:52 +0100 |
| commit | 7d1fa6599a87b9f22fc94279422d64e881f19283 (patch) | |
| tree | ede89e6a7f5f304f22abf76111cd869c47b1fee3 /.github/workflows | |
| parent | 74c1fc1fd7609869c77cbcc00eab106f6896f026 (diff) | |
| download | mullvadvpn-7d1fa6599a87b9f22fc94279422d64e881f19283.tar.xz mullvadvpn-7d1fa6599a87b9f22fc94279422d64e881f19283.zip | |
Cache Windows modules in GitHub Actions workflow
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/daemon.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/daemon.yml b/.github/workflows/daemon.yml index 6a2891506b..01a9427f8c 100644 --- a/.github/workflows/daemon.yml +++ b/.github/workflows/daemon.yml @@ -90,6 +90,25 @@ jobs: - name: Checkout submodules run: git submodule update --init --depth=1 + - name: Calculate Windows libraries cache hash + id: windows-modules-hash + shell: bash + run: | + hash="$(git grep --recurse-submodules --cached -l '' -- './windows/' | xargs sha1sum | sha1sum | cut -d" " -f1)" + echo "::set-output name=hash::$hash" + + - name: Cache Windows libraries + uses: actions/cache@v2 + id: cache-windows-modules + with: + path: | + ./windows/*/bin/x64-*/*.dll + ./windows/*/bin/x64-*/*.lib + !./windows/*/bin/x64-*/libcommon.lib + !./windows/*/bin/x64-*/libshared.lib + !./windows/*/bin/x64-*/libwfp.lib + key: windows-modules-${{ steps.windows-modules-hash.outputs.hash }} + - name: Install Rust uses: ATiltedTree/setup-rust@v1.0.4 with: @@ -105,6 +124,11 @@ jobs: with: vs-version: 16 + - name: Build Windows modules + if: steps.cache-windows-modules.outputs.cache-hit != 'true' + shell: bash + run: ./build-windows-modules.sh + - name: Build and test crates shell: bash run: ./ci/check-rust.sh |
