Skip to content

Commit

Permalink
add crate caching
Browse files Browse the repository at this point in the history
  • Loading branch information
simisimis committed Dec 19, 2024
1 parent bc7a6da commit 8108248
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/check-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: PR checks for rust server backend

on:
pull_request:
push:

concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
Expand All @@ -26,20 +25,16 @@ jobs:
outputs:
modified_keys: ${{ steps.changed.outputs.modified_keys }}
rust-checks:
env:
CARGO_TERM_COLOR: always
needs: changed-files
if: needs.changed-files.outputs.modified_keys != '[]' && needs.changed-files.outputs.modified_keys != ''
name: Rust PR Checks
runs-on: minafoundation-default-interruptible-runners
strategy:
matrix:
# In case in the future we want to add beta/nightly
toolchain: [stable]
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: ✍️ Check formatting
run: cargo fmt --all -- --check
working-directory: ./server
Expand Down

0 comments on commit 8108248

Please sign in to comment.