mirror of
https://github.com/openharmony/third_party_rust_mio.git
synced 2026-07-01 20:53:59 -04:00
28 lines
686 B
YAML
28 lines
686 B
YAML
freebsd_instance:
|
|
image: freebsd-12-3-release-amd64
|
|
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
|
|
task:
|
|
name: FreeBSD
|
|
setup_script:
|
|
- pkg install -y curl
|
|
- curl https://sh.rustup.rs -sSf --output rustup.sh
|
|
- sh rustup.sh -y --profile minimal
|
|
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
|