7437d0a6f1
This commits adds a second FreeBSD 12 build job, and splits the implementation of the FreeBSD module into two modules, one for FreeBSD 11, and one for FreeBSD 12. The FreeBSD 11 module is compiled always by default, and is mostly forward compatible with FreeBSD 12 systems. The FreeBSD 12 module is only built for now in libc's CI, and uses FreeBSD 12 data types and APIs, linking to symbols that are only available in FreeBSD 12. Basically, when LIBC_CI env variable is defined, and the host system is a FreeBSD 12 system, then the FreeBSD 12 module is automatically built and tested. Conditional compilation is done using a `cfg(freebsd12)` flag. This commit also re-enables many tests, and documents why some remain disabled.
28 lines
755 B
YAML
28 lines
755 B
YAML
task:
|
|
name: stable x86_64-unknown-freebsd-11
|
|
freebsd_instance:
|
|
image: freebsd-11-2-release-amd64
|
|
setup_script:
|
|
- pkg install -y curl
|
|
- curl https://sh.rustup.rs -sSf --output rustup.sh
|
|
- sh rustup.sh -y
|
|
- . $HOME/.cargo/env
|
|
- rustup default stable
|
|
test_script:
|
|
- . $HOME/.cargo/env
|
|
- sh ci/run.sh x86_64-unknown-freebsd
|
|
|
|
task:
|
|
name: nightly x86_64-unknown-freebsd-12
|
|
freebsd_instance:
|
|
image: freebsd-12-0-release-amd64
|
|
setup_script:
|
|
- pkg install -y curl
|
|
- curl https://sh.rustup.rs -sSf --output rustup.sh
|
|
- sh rustup.sh --default-toolchain nightly -y
|
|
- . $HOME/.cargo/env
|
|
- rustup default nightly
|
|
test_script:
|
|
- . $HOME/.cargo/env
|
|
- sh ci/run.sh x86_64-unknown-freebsd
|