From 90fd8fee9fe6e09f0fac62ab662269f2541f411c Mon Sep 17 00:00:00 2001 From: ghoscht <31184695+GHOSCHT@users.noreply.github.com> Date: Sat, 21 Dec 2024 12:32:43 +0100 Subject: [PATCH] Update .forgejo/workflows/build.yml --- .forgejo/workflows/build.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 4f21c22..e11b994 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -7,9 +7,21 @@ jobs: name: Build and test runs-on: ubuntu-latest steps: - - run: apt update - - run: apt install libasound2-dev libdbus-1-dev libpulse0 -y + - name: Install APT dependencies + run: apt update && apt install libasound2-dev libdbus-1-dev libpulse0 -y - uses: actions/checkout@v4 - uses: https://github.com/dtolnay/rust-toolchain@stable - - run: cargo build --verbose --all-features - - run: cargo test --verbose --all-features \ No newline at end of file + - name: Cache Cargo dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Build + run: cargo build --all-features + - name: Test + run: cargo test --all-features \ No newline at end of file