Split out buck2 CI to a more frequent Actions job

Many commits are landed to the buck2 prelude throughout the day.
This commit is contained in:
David Tolnay 2023-10-24 22:27:23 -07:00
parent 42621edf42
commit ff6cd8de5b
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 30 additions and 21 deletions

30
.github/workflows/buck2.yml vendored Normal file
View File

@ -0,0 +1,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
- name: Update buck2-prelude submodule
run: git submodule update --init --remote --no-fetch --depth 1 --single-branch tools/buck/prelude
- run: buck2 run demo
- run: buck2 build ...
- run: buck2 test ...

View File

@ -70,27 +70,6 @@ jobs:
env:
RUSTFLAGS: --cfg compile_error_if_alloc --cfg cxx_experimental_no_alloc ${{env.RUSTFLAGS}}
buck:
name: Buck2 on ${{matrix.os == 'ubuntu' && 'Linux' || matrix.os == 'macos' && 'macOS' || matrix.os == 'windows' && 'Windows' || '???'}}
runs-on: ${{matrix.os}}-latest
if: github.event_name != 'pull_request'
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
- name: Update buck2-prelude submodule
run: git submodule update --init --remote --no-fetch --depth 1 --single-branch tools/buck/prelude
- run: buck2 run demo
- run: buck2 build ...
- run: buck2 test ...
reindeer:
name: Reindeer
runs-on: ubuntu-latest