EXPERIMENT: build jujutsu with buck2 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: buck2 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: read-all | |
jobs: | |
nix: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
- os: windows-latest | |
- os: macos-latest | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 # NOTE (aseipp): keep in-sync with the build.yml timeout limit | |
name: build with buck2 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Install DotSlash | |
uses: ./.github/actions/install-dotslash | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 | |
with: | |
toolchain: 1.76 | |
- name: (Linux) Install Mold | |
run: | | |
if [[ "$RUNNER_OS" == "Linux" ]]; then | |
sudo apt-get update && sudo apt-get install -y mold | |
fi | |
- name: buck2 build //... | |
run: | | |
dotslash \ | |
./tools/bin/buck2 build //... @mode//debug | |
dotslash \ | |
./tools/bin/buck2 run cli @mode//debug -- version |