Skip to content

Commit

Permalink
buck2/github: enable caches for all platforms (facebook#813)
Browse files Browse the repository at this point in the history
Summary:

Enable caches for Mac and Windows to speed up build and test jobs.

Differential Revision: D66054868
  • Loading branch information
KapJI authored and facebook-github-bot committed Nov 19, 2024
1 parent d920077 commit 746cfb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/actions/build_debug/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/build_release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/setup_linux_env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 746cfb4

Please sign in to comment.