Skip to content

Commit

Permalink
Fix cache and artefact
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsIrl committed Aug 16, 2020
1 parent 90e1333 commit eceb977
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
restore-keys: ${{ runner.os }}-
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- run: cargo build --release --verbose
- run: cargo test --release --verbose
- uses: actions/upload-artifact@v2
with:
name: mozwire-${{ runner.os }}
path: target/release/mozwire*
path: |
target/release/mozwire
target/release/mozwire.exe

0 comments on commit eceb977

Please sign in to comment.