From da83129d65ac19a38a53fce6a76efe230319c5d6 Mon Sep 17 00:00:00 2001 From: Seven Of Aces Date: Thu, 12 Dec 2024 19:20:46 -0800 Subject: [PATCH] ... --- .forgejo/workflows/cargo_test.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/cargo_test.yml b/.forgejo/workflows/cargo_test.yml index 0b09445..841b270 100644 --- a/.forgejo/workflows/cargo_test.yml +++ b/.forgejo/workflows/cargo_test.yml @@ -16,15 +16,28 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Cargo - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + - name: Install Cargo via Ubuntu package + run: sudo apt-get install -y cargo - - name: Install dependencies + - name: Cache dependencies (restore) + uses: actions/cache@v2 + with: + path: | + target + ~/.cargo + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: Update dependencies run: cargo fetch + - name: Cache dependencies (save) + uses: actions/cache/save@v4 + with: + path: | + target + ~/.cargo + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Check formatting run: cargo fmt --check