Use caching in GH actions
This commit is contained in:
parent
59c71733a7
commit
00d25e8298
1 changed files with 26 additions and 6 deletions
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
|
|
@ -22,18 +22,38 @@ jobs:
|
|||
os: [ubuntu-latest]
|
||||
toolchain: [stable]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust
|
||||
- name: Setup cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||||
|
||||
- name: Install rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- run: |
|
||||
cargo build --release
|
||||
- name: Build C library
|
||||
run: make
|
||||
|
||||
- name: Build CLI
|
||||
run: cargo build --release
|
||||
|
||||
- name: Setup fixture parsers
|
||||
run: |
|
||||
script/fetch-fixtures
|
||||
script/generate-fixtures
|
||||
script/test
|
||||
script/benchmark
|
||||
|
||||
- name: Run tests
|
||||
run: script/test
|
||||
|
||||
- name: Run benchmarks
|
||||
run: script/benchmark
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue