From fdd0e21041c7107abb475b652968b355487de4eb Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 5 Feb 2024 00:25:31 +0100 Subject: [PATCH] ci: add caching to build.yml --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12ff6799..8aa5bf1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,11 +98,9 @@ jobs: with: version: ${{ env.EMSCRIPTEN_VERSION }} - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - targets: ${{ matrix.target }} - toolchain: 'stable' + - run: rustup toolchain install stable --profile minimal + - run: rustup target add ${{ matrix.targetĀ }} + - uses: Swatinem/rust-cache@v2 - name: Install cross if: ${{ matrix.use-cross }}