Skip to content

Commit

Permalink
chore(github): regression test select packages with rustc stable
Browse files Browse the repository at this point in the history
Summary: This will help make sure people don't add features to packages that are
already tested as stable.

GitHub Issue: facebook#265

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Change-Id: Isovlpypkxoosxuollxklokkkprpryloy
  • Loading branch information
thoughtpolice committed Jul 1, 2023
1 parent c69f195 commit c0e57f5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/rustc-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# In the quest to make buck2 build under stable rustc, crates can and will
# eventually become fully stable compatible, along with their dependencies.
# These crates should be built here to ensure they don't regress.

name: Regression testing for rustc-stable-compatible crates

on:
push:
branches:
- main

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
rust_version: [stable] # Add more versions here, e.g. MSRV
cargo_flags: [""] # Add more flags here, e.g. --all-features

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Install Rust (${{ matrix.rust_version }})
uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e
with:
toolchain: ${{ matrix.rust_version }}
- name: Build crates
run: |
PS=(
"host_sharing"
)
for x in "${PS[@]}"; do
cargo build -p $x --verbose ${{ matrix.cargo_flags }}
done

0 comments on commit c0e57f5

Please sign in to comment.