From adba585408593e1780b533f6b662ce3a55700d26 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Fri, 2 Jun 2023 10:12:21 +0300 Subject: [PATCH] use rust cache in github actions --- .github/workflows/build.yml | 2 ++ .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9578820..28d7404 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,8 @@ jobs: run: rustup component add rustfmt - name: Install clippy run: rustup component add clippy + - name: Rust cache + uses: Swatinem/rust-cache@v2 - name: Build code run: cargo build - name: Lint code format diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd98bcc..a4964dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,8 @@ jobs: run: rustup target add i686-linux-android - name: Add x86_64 target run: rustup target add x86_64-linux-android + - name: Rust cache + uses: Swatinem/rust-cache@v2 - name: Build aar run: ./gradlew assembleRelease - name: Upload build artifacts