mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 20:42:15 +00:00
Merge pull request #12 from EETagent/actions_cache
[DevOps] - Github Actions caching & improvements
This commit is contained in:
commit
e820df60c2
1 changed files with 29 additions and 6 deletions
35
.github/workflows/rust.yml
vendored
35
.github/workflows/rust.yml
vendored
|
|
@ -11,12 +11,35 @@ 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