diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 1dc9ab3..159fc3b 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -25,9 +25,9 @@ on: commit_sha: description: Git commit sha, on which, to run this workflow -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} +# cancel-in-progress: true jobs: lint_commits: @@ -48,25 +48,33 @@ jobs: lint_projects: - cargo_fmt_check - cargo_clippy - - cargo_deny +# - cargo_deny - cargo_toml_files steps: - uses: actions/checkout@v3 - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: stable - - name: Install cargo-deny - run: cargo install --locked cargo-deny && cargo deny init && cargo deny check || true + profile: minimal + toolchain: nightly + components: rustfmt, clippy - name: Rust Cache - uses: Swatinem/rust-cache@v2 + uses: actions/cache@v3 + continue-on-error: false with: - save-if: ${{ github.ref == 'refs/heads/main' }} + path: | + ~/.cargo/bin + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ key: ${{ runner.os }}-sdk-rust-${{ hashFiles('**/Cargo.lock') }} restore-keys: | ${{ runner.os }}-sdk-rust- - name: Check cargo version run: cargo --version + - name: Format + run: cargo fmt --all -- --check - name: Run lint ${{ matrix.lint_projects }} run: make -f Makefile lint_${{ matrix.lint_projects }}