Skip to content

Commit

Permalink
more cache tricks
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankurte committed Feb 8, 2021
1 parent b4f75d6 commit f4c2d2d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,29 @@ jobs:
target: ${{ matrix.target }}
override: true

- name: Configure cargo caching
- name: Configure linux caching
if: ${{ matrix.os != 'windows-latest' }}
uses: actions/cache@v2
with:
key: ${{ matrix.os }}-${{ matrix.target }}
path: |
${{ env.HOME }}/.cargo"
target
./target
/usr/share/rust/.cargo/.cargo/bin
/usr/share/rust/.cargo/.cargo/registry/index
/usr/share/rust/.cargo/.cargo/registry/cache
/usr/share/rust/.cargo/.cargo/git/db
- name: Configure vcpkg caching
- name: Configure windows caching
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/cache@v2
with:
key: ${{ matrix.os }}-${{ matrix.target }}
path: C:\vcpkg\archives
path: |
C:\vcpkg\archives
C:\Rust\.cargo\bin
C:\Rust\.cargo\registry\index
C:\Rust\.cargo\registry\cache
C:\Rust\.cargo\git\db
- name: Install openssl (apt armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
Expand Down

0 comments on commit f4c2d2d

Please sign in to comment.