Skip to content

chore(spec): add actions cache #39

chore(spec): add actions cache

chore(spec): add actions cache #39

Workflow file for this run

on:
push:
# branches:
# - main
pull_request:
name: compliance
jobs:
compliance:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: |
~/.docker
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-docker-
- name: Install protobuf
run: sudo apt-get -y install protobuf-compiler
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
toolchain: 1.71.0
- name: Install toolchain (nightly)
run: rustup toolchain add nightly --component rustfmt --profile minimal
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- name: Run spec tests
run: ./test/spec-tests/ci/run-spec-tests.sh