diff options
author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2022-12-14 14:46:27 +0100 |
---|---|---|
committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-03-06 09:43:32 +0100 |
commit | b9a49d442bdeeac8cac3bb097f5e224e7623e037 (patch) | |
tree | d6b58e1932bb319404745a943ddd6713a95ecc88 | |
parent | e74f73544f29fe3559081250b9a657a36bc860eb (diff) | |
download | rust-libc-b9a49d442bdeeac8cac3bb097f5e224e7623e037.tar.gz |
add ci job to test check-cfg
-rw-r--r-- | .github/workflows/bors.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/bors.yml b/.github/workflows/bors.yml index 49a06de686..e4e342a1b3 100644 --- a/.github/workflows/bors.yml +++ b/.github/workflows/bors.yml @@ -317,6 +317,23 @@ jobs: run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} WIN_TARGET=${{ matrix.target }} sh ./ci/build.sh shell: bash + check_cfg: + permissions: + actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds) + contents: read # to fetch code (actions/checkout) + + name: "Check #[cfg]s" + runs-on: ubuntu-22.04 + steps: + - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master + with: + github_token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/checkout@v3 + - name: Setup Rust toolchain + run: TOOLCHAIN=nightly sh ./ci/install-rust.sh + - name: Build with check-cfg + run: LIBC_CI=1 LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg=features,names,values,output + docs: permissions: actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds) |