Adding caching to CI

This commit is contained in:
Franz Dietrich 2021-08-14 10:24:07 +02:00
parent dbb41d2691
commit 32e6e80c7d
2 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,15 @@ jobs:
with: with:
version: 'latest' version: 'latest'
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install musl-tools - name: Install musl-tools
run: sudo apt-get install musl-tools run: sudo apt-get install musl-tools
- name: Build - name: Build

View File

@ -27,6 +27,15 @@ jobs:
with: with:
version: 'latest' version: 'latest'
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install musl-tools - name: Install musl-tools
run: sudo apt-get install musl-tools run: sudo apt-get install musl-tools
- name: Build - name: Build