Skip to content

Add data

Add data #571

Workflow file for this run

name: Run clippy
on:
push:
branches: ["*"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout (no ./data)
with:
# include everything, then exclude the folder
sparse-checkout: |
/*
!data/**
sparse-checkout-cone-mode: false # needed for '!' patterns
uses: actions/checkout@v4
- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.rustup
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-${{ github.workflow }}-rust-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/rust-toolchain.toml') }}
- name: Install WASM toolchain
run: rustup target add wasm32-unknown-unknown
- name: Check project
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Check project (WASM)
run: cargo clippy --workspace --all-features --target wasm32-unknown-unknown -- -D warnings