Skip to content

Commit

Permalink
test mounting cargo cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ggera committed Aug 19, 2024
1 parent 53f1d66 commit e7c985c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/cargo-clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Deploy Chain docs

on:
push:
branches:
- github-runner

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true

- name: Checkout
uses: actions/checkout@v4

- name: Set up Cargo Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-clippy-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-clippy-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and Deploy in Container
run: |
docker run --rm \
-v "${GITHUB_WORKSPACE}:/workspace" \
-v "${HOME}/.cargo:/root/.cargo" \
-w /workspace \
paritytech/ci-unified:bullseye-1.74.0 \
bash -c "
RUSTDOCFLAGS='-D warnings' SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --quiet"

0 comments on commit e7c985c

Please # to comment.