From 9ebccbc1ff92818571a0b2aeaf5c9575aaabd684 Mon Sep 17 00:00:00 2001 From: restitux Date: Mon, 9 Mar 2026 02:39:19 -0600 Subject: [PATCH] custom macos cache logic --- .gitea/workflows/build-release.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitea/workflows/build-release.yaml b/.gitea/workflows/build-release.yaml index c71840d..945d616 100644 --- a/.gitea/workflows/build-release.yaml +++ b/.gitea/workflows/build-release.yaml @@ -48,6 +48,16 @@ jobs: - name: Checkout uses: actions/checkout@v5 + - name: Restore Rust cache + uses: actions/cache/restore@v4 + with: + path: | + ~/.cargo + ./target + key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + rust-${{ runner.os }}- + - name: Install cargo binstall run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash @@ -57,6 +67,15 @@ jobs: - name: Build dioxus project run: dx bundle --platform macos --release -p mumble-web2-gui + - name: Save Rust cache + if: always() + uses: actions/cache/save@v4 + with: + path: | + ~/.cargo + ./target + key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} + - name: Upload mumble-web2-gui Artifact uses: https://gitea.com/actions/gitea-upload-artifact@v4 with: