mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-20 12:58:34 +00:00
devops: caching & improvements
This commit is contained in:
parent
3a70cf3483
commit
aa940ccbbf
1 changed files with 26 additions and 6 deletions
32
.github/workflows/rust.yml
vendored
32
.github/workflows/rust.yml
vendored
|
|
@ -11,12 +11,32 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --all --verbose
|
||||
- name: Check out 🚚
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install latest stable Rust toolchain 🦀
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
default: true
|
||||
- name: Set up cargo cache 📦
|
||||
uses: actions/cache@v3
|
||||
continue-on-error: false
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: ${{ runner.os }}-cargo-
|
||||
- name: Build 🔨
|
||||
run: cargo build --verbose
|
||||
- name: Run tests 🚀
|
||||
run: cargo test --all --verbose
|
||||
|
|
|
|||
Loading…
Reference in a new issue