Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .cirrus.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,31 @@ jobs:
locked: true
- name: check-external-types
run: cargo check-external-types --all-features
vmactions:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-freebsd
arch: x86_64
- target: i686-unknown-freebsd
arch: i686
name: FreeBSD/${{ matrix.arch }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Test on FreeBSD
uses: vmactions/freebsd-vm@v1
with:
release: "14.4"
usesh: true
prepare: |
pkg install -y curl cargo-hack
kldload cc_newreno # For the tcp_congestion test
fetch https://sh.rustup.rs -o rustup.sh
sh rustup.sh -y --profile=minimal
. $HOME/.cargo/env
rustup target add ${{ matrix.target }}
Comment on lines +182 to +183
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
. $HOME/.cargo/env
rustup target add ${{ matrix.target }}
# i686-unknown-freebsd runs on x86_64 using 32-bit compatibility, so the target must be added explicitly.
if [ "${{ matrix.target }}" = "i686-unknown-freebsd" ]; then
. $HOME/.cargo/env
rustup target add i686-unknown-freebsd
fi

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suggestion is what we do for Mio as well.

run: |
. $HOME/.cargo/env
cargo hack test --target ${{ matrix.target }} --feature-powerset
Loading