From 32e1210b3c2b443834e04eb8bac1e07108c47b4f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 18 Jul 2025 21:21:33 +0000 Subject: [PATCH 1/2] Initial plan From 27f7e379593b425b363ce56fa88231cf93740254 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 18 Jul 2025 22:11:14 +0000 Subject: [PATCH 2/2] Add externals directory caching to copilot-setup-steps workflow Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com> --- .github/workflows/copilot-setup-steps.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 814cedb57..41ed29bed 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -27,10 +27,31 @@ jobs: - name: Restore dotnet tools run: dotnet tool restore + # Cache the externals directory based on config.json content + # This caches the Maven artifacts downloaded by the binderator tool + # to avoid re-downloading the same artifacts on subsequent runs + - name: Restore externals cache + id: cache-externals-restore + uses: actions/cache/restore@v4 + with: + path: ./externals + key: externals-${{ hashFiles('config.json') }} + - name: Run dotnet cake run: dotnet cake continue-on-error: true + # Save the externals cache after dotnet cake runs + # This ensures the cache reflects the original config.json state + # before any potential modifications by the build process + - name: Save externals cache + id: cache-externals-save + uses: actions/cache/save@v4 + if: steps.cache-externals-restore.outputs.cache-hit != 'true' + with: + path: ./externals + key: externals-${{ hashFiles('config.json') }} + - name: Display environment info run: | echo "=== Environment Summary ==="