Skip to content

Commit

Permalink
Add basic FreeBSD CI using Cirrus CI (#923)
Browse files Browse the repository at this point in the history
This currently only runs unit tests and not the compliance tests.

Cirrus CI is the only CI provider I'm aware of which supports FreeBSD
out of the box. It does have the disadvantage though that on the free
tier it can take several minutes before a CI job actually starts.

---------

Co-authored-by: Marc R. Schoolderman <[email protected]>
  • Loading branch information
bjorn3 and squell authored Feb 11, 2025
1 parent 4333366 commit 5f4f2d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
task:
name: Cirrus CI / freebsd unit tests
freebsd_instance:
image_family: freebsd-14-2
memory: 2GB
setup_rust_script:
- pkg install -y git-tiny
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --profile=minimal
test_script:
- . $HOME/.cargo/env
# We skip a couple of tests which fail when running as root.
- cargo test --workspace --all-features --all-targets --release -- --skip group_as_non_root --skip test_secure_open_cookie_file

0 comments on commit 5f4f2d2

Please sign in to comment.