aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/buck2.yml
blob: f91ac3d3d21a5cea7d7810967b5ed0f9b80dffdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Buck2

on:
  push:
  workflow_dispatch:
  schedule: [cron: "40 1,13 * * *"]

permissions:
  contents: read

jobs:
  buck2:
    name: Buck2 on ${{matrix.os == 'ubuntu' && 'Linux' || matrix.os == 'macos' && 'macOS' || matrix.os == 'windows' && 'Windows' || '???'}}
    runs-on: ${{matrix.os}}-latest
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu, macos, windows]
    timeout-minutes: 45
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rust-src
      - uses: dtolnay/install-buck2@latest
        with:
          prelude-submodule: tools/buck/prelude
      - run: buck2 run demo
      - run: buck2 build ...
      - run: buck2 test ...