Skip to content

build images in gh

build images in gh #3

Workflow file for this run

name: Cargo Clippy
on:
push:
branches:
- github-runner
jobs:
cargo-clippy:
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 && \
chown -R $(id -u):$(id -g) target/"