• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Buck2
2
3on:
4  push:
5  workflow_dispatch:
6  schedule: [cron: "40 1,13 * * *"]
7
8permissions:
9  contents: read
10
11jobs:
12  buck2:
13    name: Buck2 on ${{matrix.os == 'ubuntu' && 'Linux' || matrix.os == 'macos' && 'macOS' || matrix.os == 'windows' && 'Windows' || '???'}}
14    runs-on: ${{matrix.os}}-latest
15    strategy:
16      fail-fast: false
17      matrix:
18        os: [ubuntu, macos, windows]
19    timeout-minutes: 45
20    steps:
21      - uses: actions/checkout@v4
22      - uses: dtolnay/rust-toolchain@stable
23        with:
24          components: rust-src
25      - uses: dtolnay/install-buck2@latest
26        with:
27          prelude-submodule: tools/buck/prelude
28      - run: buck2 run demo
29      - run: buck2 build ...
30      - run: buck2 test ...
31