mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-05 07:41:21 +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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Check out 🚚
|
||||||
- name: Build
|
uses: actions/checkout@v3
|
||||||
run: cargo build --verbose
|
|
||||||
- name: Run tests
|
- name: Install latest stable Rust toolchain 🦀
|
||||||
run: cargo test --all --verbose
|
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