Skip to content

Commit

Permalink
Add i686-unknown-freebsd to CI
Browse files Browse the repository at this point in the history
Add i686-unknown-freebsd to CI.  Run it using 32-bit emulation in a
64-bit environment, with the nightly compiler only.

So as to avoid a repeat of rust-lang/rust#130677
  • Loading branch information
asomers committed Nov 8, 2024
1 parent e4c7acc commit ce0a306
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
task:
only_if: $CIRRUS_BRANCH == 'main' || $CIRRUS_BASE_BRANCH == 'libc-0.2' || $CIRRUS_BASE_BRANCH == 'main'
env:
HOME: /tmp # cargo cache needs it
TARGET: x86_64-unknown-freebsd
matrix:
- name: nightly freebsd-13
- name: nightly freebsd-13 i686
# Test i686 FreeBSD in 32-bit emulation on a 64-bit host.
env:
TARGET: i686-unknown-freebsd
freebsd_instance:
image_family: freebsd-13-3
- name: nightly freebsd-14
- name: nightly freebsd-13 x86_64
freebsd_instance:
image_family: freebsd-13-3
- name: nightly freebsd-14 x86_64
freebsd_instance:
image: freebsd-14-1-release-amd64-ufs
- name: nightly freebsd-15
- name: nightly freebsd-15 x86_64
freebsd_instance:
image_family: freebsd-15-0-snap
setup_script:
- pkg install -y libnghttp2 curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
- . $HOME/.cargo/env
- if [ "$TARGET" = "i686-unknown-freebsd" ]; then rustup target add i686-unknown-freebsd; fi
test_script:
- . $HOME/.cargo/env
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
- sh ci/run.sh x86_64-unknown-freebsd
- LIBC_CI=1 sh ci/run.sh $TARGET
- sh ci/run.sh $TARGET

0 comments on commit ce0a306

Please sign in to comment.