Skip to content

Commit

Permalink
Configure NetBSD CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-bennett committed Oct 14, 2024
1 parent 46605da commit 9425059
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/full_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,52 @@ jobs:
- name: Build with check-cfg
run: LIBC_CI=1 LIBC_CHECK_CFG=1 cargo build -Z unstable-options -Z check-cfg

build_channels_netbsd:
permissions:
contents: read # to fetch code (actions/checkout)

name: Build Channels NetBSD
runs-on: ubuntu-latest
env:
OS: netbsd
strategy:
fail-fast: true
matrix:
toolchain: [
1.71.0,
stable,
]
steps:
- uses: actions/checkout@v4
- name: Run netbsd vm
id: netbsd-ci
uses: vmactions/netbsd-vm@v1
with:
envs: 'OS'
usesh: true
prepare: |
/usr/sbin/pkg_add libnghttp2
/usr/sbin/pkg_add curl
curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --default-toolchain nightly --profile=minimal
. $HOME/.cargo/env
run: |
. $HOME/.cargo/env
LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
check_cfg:
permissions:
contents: read # to fetch code (actions/checkout)

name: "Check #[cfg]s"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- 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

# One job that "summarizes" the success state of this pipeline. This can then be added to branch
# protection, rather than having to add each job separately.
success:
Expand Down

0 comments on commit 9425059

Please sign in to comment.