Merge pull request #12 from EETagent/actions_cache

[DevOps] - Github Actions caching & improvements
This commit is contained in:
Vojtěch Jungmann 2022-10-26 14:51:36 +02:00 committed by GitHub
commit e820df60c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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