mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 09:50:34 +01:00
fb1cd3a322
Rust 1.19 will be a requirement, however.
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
language: rust
|
|
cache: cargo
|
|
matrix:
|
|
allow_failures:
|
|
- rust: nightly
|
|
include:
|
|
# Stable channel.
|
|
- os: linux
|
|
rust: stable
|
|
before_script:
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
|
- which rustfmt || cargo install rustfmt
|
|
script:
|
|
- cargo fmt -- --write-mode=diff
|
|
- cargo build
|
|
- cargo test
|
|
# Beta channel.
|
|
- os: linux
|
|
rust: beta
|
|
- os: linux
|
|
rust: beta
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
- os: linux
|
|
rust: beta
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
# Nightly channel.
|
|
- os: linux
|
|
rust: nightly
|
|
before_script:
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
|
- which rustfmt || cargo install rustfmt-nightly
|
|
script:
|
|
- cargo fmt -- --write-mode=diff
|
|
- cargo build
|
|
- cargo test
|
|
- os: linux
|
|
rust: nightly
|
|
env: TARGET=i686-unknown-linux-musl
|
|
- os: linux
|
|
rust: nightly
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
- os: osx
|
|
rust: nightly
|
|
env: TARGET=x86_64-apple-darwin
|
|
# Minimum Rust supported channel.
|
|
- os: linux
|
|
rust: 1.19.0
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
- os: linux
|
|
rust: 1.19.0
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
- os: osx
|
|
rust: 1.19.0
|
|
env: TARGET=x86_64-apple-darwin
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|