Skip to content

Commit

Permalink
use dtolnay/install-buck2
Browse files Browse the repository at this point in the history
Summary: using dtolnay/install-buck2@latest to get buck allows us to remove some boilerplate

Differential Revision:
D53090424

Privacy Context Container: L1122763

fbshipit-source-id: 6ae0593541acef2d28bb6e234a97327bd4c93cb7
  • Loading branch information
Shayne Fletcher authored and facebook-github-bot committed Jan 25, 2024
1 parent 37b3eda commit 85b41aa
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/buck-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: |
sudo apt-get update && sudo apt-get install opam
wget https://github.com/facebook/buck2/releases/download/latest/buck2-x86_64-unknown-linux-gnu.zst
zstd -d buck2-x86_64-unknown-linux-gnu.zst -o buck2
- run: sudo apt-get update && sudo apt-get install opam
if: matrix.os == 'ubuntu'
- run: |
brew install opam
wget https://github.com/facebook/buck2/releases/download/latest/buck2-x86_64-apple-darwin.zst
zstd -d buck2-x86_64-apple-darwin.zst -o buck2
- run: brew install opam
if: matrix.os == 'macos'
- run: |
chmod +x buck2
sudo ln -s $(pwd)/buck2 /usr/local/bin/buck2
- uses: dtolnay/install-buck2@latest
- run: |
opam init --compiler=5.1.1 --disable-sandboxing -y
opam env | sed -e "s/ export .*//g" -e "s/'//g" -e "s/\;//g" >> $GITHUB_ENV
Expand Down

0 comments on commit 85b41aa

Please sign in to comment.