From aa5ea74e1f8ec3bbd9356257e2df1931decd57ce Mon Sep 17 00:00:00 2001 From: Alex Pikme Date: Wed, 18 Jun 2025 21:54:38 +0200 Subject: [PATCH] Improve CI workflow with dependency caching and stable toolchain --- .github/workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 34a4a52..d309e4a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,19 @@ jobs: - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 + with: + version: latest + + - name: Cache Foundry dependencies + uses: actions/cache@v4 + with: + path: | + ~/.foundry/cache + ~/.foundry/rpc-cache + ~/.cache/foundry + key: foundry-${{ runner.os }}-${{ hashFiles('**/foundry.toml') }} + restore-keys: | + foundry-${{ runner.os }}- - name: Show Forge version run: |