From 746cfb4ad19090da20aec92a456c100274fc1091 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Tue, 19 Nov 2024 08:21:04 -0800 Subject: [PATCH] buck2/github: enable caches for all platforms (#813) Summary: Enable caches for Mac and Windows to speed up build and test jobs. Differential Revision: D66054868 --- .github/actions/build_debug/action.yml | 3 +++ .github/actions/build_release/action.yml | 3 +++ .github/actions/setup_linux_env/action.yml | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/build_debug/action.yml b/.github/actions/build_debug/action.yml index 2992e4764b27..4e87b4f0eb20 100644 --- a/.github/actions/build_debug/action.yml +++ b/.github/actions/build_debug/action.yml @@ -3,6 +3,9 @@ description: Build buck2 binary (debug) runs: using: composite steps: + - uses: Swatinem/rust-cache@v2 + with: + prefix-key: buck2-debug - name: Build buck2 binary (debug) run: |- mkdir $RUNNER_TEMP/artifacts diff --git a/.github/actions/build_release/action.yml b/.github/actions/build_release/action.yml index 18b642eb3c6a..d02ad2fcc51a 100644 --- a/.github/actions/build_release/action.yml +++ b/.github/actions/build_release/action.yml @@ -3,6 +3,9 @@ description: Build buck2 binary (release) runs: using: composite steps: + - uses: Swatinem/rust-cache@v2 + with: + prefix-key: buck2-release - name: Build buck2 binary (release) run: |- mkdir $RUNNER_TEMP/artifacts diff --git a/.github/actions/setup_linux_env/action.yml b/.github/actions/setup_linux_env/action.yml index 3b69fe2b6752..435993abd1dd 100644 --- a/.github/actions/setup_linux_env/action.yml +++ b/.github/actions/setup_linux_env/action.yml @@ -12,9 +12,6 @@ runs: with: toolchain: ${{ steps.read_rust_toolchain.outputs.value }} components: clippy - - uses: Swatinem/rust-cache@v2 - with: - prefix-key: buck2-upload - run: sudo apt-get update shell: bash - run: sudo apt-get install opam libzstd-dev python3-pip