ci: test on FreeBSD, NetBSD and OpenBSD without Cirrus #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BSD | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| freebsd: | |
| name: test (x86_64-unknown-freebsd) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Test in FreeBSD | |
| uses: vmactions/freebsd-vm@v1 | |
| with: | |
| usesh: true | |
| cache-after-prepare: true | |
| prepare: | | |
| pkg install -y curl git | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable | |
| run: | | |
| set -e | |
| . $HOME/.cargo/env | |
| export CARGO_INCREMENTAL=0 CARGO_NET_RETRY=10 CARGO_TERM_COLOR=always | |
| export RUST_BACKTRACE=1 RUSTFLAGS="-D warnings" RUSTUP_MAX_RETRIES=10 | |
| rustc --version | |
| cargo test | |
| netbsd: | |
| name: test (x86_64-unknown-netbsd) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Test in NetBSD | |
| uses: vmactions/netbsd-vm@v1 | |
| with: | |
| usesh: true | |
| cache-after-prepare: true | |
| prepare: | | |
| /usr/sbin/pkg_add curl git | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable | |
| run: | | |
| set -e | |
| . $HOME/.cargo/env | |
| export CARGO_INCREMENTAL=0 CARGO_NET_RETRY=10 CARGO_TERM_COLOR=always | |
| export RUST_BACKTRACE=1 RUSTFLAGS="-D warnings" RUSTUP_MAX_RETRIES=10 | |
| rustc --version | |
| cargo test | |
| openbsd: | |
| name: test (x86_64-unknown-openbsd) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Test in OpenBSD | |
| uses: vmactions/openbsd-vm@v1 | |
| with: | |
| usesh: true | |
| cache-after-prepare: true | |
| # OpenBSD is a tier 3 Rust target, so install rust from the package | |
| # manager instead of rustup (same reason as the old .cirrus.yml). | |
| prepare: | | |
| pkg_add -I git rust | |
| run: | | |
| set -e | |
| export CARGO_INCREMENTAL=0 CARGO_NET_RETRY=10 CARGO_TERM_COLOR=always | |
| export RUST_BACKTRACE=1 RUSTFLAGS="-D warnings" | |
| rustc --version | |
| cargo test |