diff options
Diffstat (limited to '.github')
| -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 |
