From f74eb7ae3cdcd234bfeddca6df39b961e472bd68 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Thu, 16 Apr 2026 09:37:15 -0600 Subject: [PATCH] Convert the FreeBSD tests to Github Workflows Because Cirrus Labs is shutting down soon. Fixes #649 --- .cirrus.yml | 27 --------------------------- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 27 deletions(-) delete mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index 57a00d4f..00000000 --- a/.cirrus.yml +++ /dev/null @@ -1,27 +0,0 @@ -freebsd_instance: - image: freebsd-14-3-release-amd64-ufs - -env: - RUST_BACKTRACE: full - -task: - name: FreeBSD - setup_script: - - fetch https://sh.rustup.rs -o rustup.sh - - sh rustup.sh -y --profile minimal - - kldload cc_newreno # For the tcp_congestion test - cargo_cache: - folder: $HOME/.cargo/registry - build_script: - - . $HOME/.cargo/env - - cargo build - - cargo build --no-default-features - amd64_test_script: - - . $HOME/.cargo/env - - cargo test --all-features - i386_test_script: - - . $HOME/.cargo/env - - rustup target add i686-unknown-freebsd - - cargo test --target i686-unknown-freebsd --all-features - before_cache_script: - - rm -rf $HOME/.cargo/registry/index diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4758e56e..72eb60c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} + run: | + . $HOME/.cargo/env + cargo hack test --target ${{ matrix.target }} --feature-powerset