xref: /rust-libc-0.2.174/.cirrus.yml (revision 42cd7e1a)
1task:
2  only_if: $CIRRUS_BRANCH == 'main' || $CIRRUS_BASE_BRANCH == 'libc-0.2' ||  $CIRRUS_BASE_BRANCH == 'main'
3  env:
4    HOME: /tmp  # cargo cache needs it
5    TARGET: x86_64-unknown-freebsd
6    # FIXME(freebsd): FreeBSD has a segfault when `RUST_BACKTRACE` is set
7    # https://github.com/rust-lang/rust/issues/132185
8    RUST_BACKTRACE: "0"
9  matrix:
10    - name: nightly freebsd-13 i686
11      # Test i686 FreeBSD in 32-bit emulation on a 64-bit host.
12      env:
13        TARGET: i686-unknown-freebsd
14      freebsd_instance:
15        image_family: freebsd-13-4
16    - name: nightly freebsd-13 x86_64
17      freebsd_instance:
18        image_family: freebsd-13-4
19    - name: nightly freebsd-14 x86_64
20      freebsd_instance:
21        image: freebsd-14-2-release-amd64-ufs
22    - name: nightly freebsd-15 x86_64
23      freebsd_instance:
24       image_family: freebsd-15-0-snap
25  setup_script:
26    - pkg install -y libnghttp2 curl
27    - curl https://sh.rustup.rs -sSf --output rustup.sh
28    - sh rustup.sh -y --default-toolchain nightly --profile=minimal
29    - . $HOME/.cargo/env
30    - if [ "$TARGET" = "i686-unknown-freebsd" ]; then rustup target add i686-unknown-freebsd; fi
31  test_script:
32    - . $HOME/.cargo/env
33    - LIBC_CI=1 sh ci/run.sh $TARGET
34    - sh ci/run.sh $TARGET
35