From c56203094995ef901dfb6958b4613cb693bb625e Mon Sep 17 00:00:00 2001 From: Sophie Dankel <47993817+sdankel@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:33:52 -0800 Subject: [PATCH 1/2] Fix build-mdbook CI failure --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86757eddb2b..747e939be4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -159,7 +159,7 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install Forc - run: cargo install --locked --debug --path ./forc + run: cargo install --force --locked --debug --path ./forc - name: Install Forc plugins run: | cargo install --locked --debug --path ./forc-plugins/forc-fmt From 9ca599b15cecd3355f019e1a5cb442b044eacd60 Mon Sep 17 00:00:00 2001 From: Sophie Date: Wed, 7 Feb 2024 13:38:00 -0800 Subject: [PATCH 2/2] cache all of cargo dir --- .github/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 747e939be4c..351cb432f0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -152,14 +152,11 @@ jobs: - uses: buildjet/cache@v3 with: path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ + ~/.cargo/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install Forc - run: cargo install --force --locked --debug --path ./forc + run: cargo install --locked --debug --path ./forc - name: Install Forc plugins run: | cargo install --locked --debug --path ./forc-plugins/forc-fmt @@ -376,10 +373,7 @@ jobs: - uses: buildjet/cache@v3 with: path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ + ~/.cargo/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build All Tests