Skip to content

Commit

Permalink
Add buck2 CI on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 3, 2023
1 parent dcdaa8c commit cfd96b8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ jobs:
RUSTFLAGS: --cfg compile_error_if_alloc --cfg cxx_experimental_no_alloc ${{env.RUSTFLAGS}}

buck:
name: Buck
runs-on: ubuntu-latest
name: Buck2 on ${{matrix.os == 'ubuntu' && 'Linux' || matrix.os == 'macos' && 'macOS' || '???'}}
runs-on: ${{matrix.os}}-latest
if: github.event_name != 'pull_request'
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
Expand All @@ -82,14 +86,18 @@ jobs:
- uses: dtolnay/install-buck2@latest
- name: Install lld
run: sudo apt-get install lld
if: matrix.os == 'ubuntu'
- run: buck2 run demo
- run: buck2 build ...
- run: buck2 test ...
- uses: dtolnay/install@reindeer
if: matrix.os == 'ubuntu'
- run: reindeer buckify
if: matrix.os == 'ubuntu'
working-directory: third-party
- name: Check reindeer-generated BUCK file up to date
run: git diff --exit-code
if: matrix.os == 'ubuntu'

bazel:
name: Bazel
Expand Down

0 comments on commit cfd96b8

Please sign in to comment.