Run proptests only on main #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Store cargo build cache | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/**.rs' | ||
- 'smart-contracts/**.toml' | ||
workflow_dispatch: | ||
jobs: | ||
store-build-cache: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Rust check | ||
run: cargo check | ||
working-directory: smart-contracts | ||
- name: Store dependencies | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: | | ||
~/.cargo | ||
~/go | ||
**/target | ||
key: ${{ runner.os }}-cargo-$GITHUB_SHA | ||
restore-keys: ${{ runner.os }}-cargo |