Fix bug #126: handle NaNs correctly in min() and max() #228
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: [push, pull_request] | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
RUSTFLAGS: "-D warnings" | |
# Disable debuginfo for faster compile | |
CARGO_PROFILE_DEV_DEBUG: 0 | |
CARGO_PROFILE_TEST_DEBUG: 0 | |
CARGO_PROFILE_BENCH_DEBUG: 0 | |
CI: 1 | |
CARGO_MAKE_CI: 1 | |
CARGO_MAKE_RUN_CHECK_FORMAT: 1 | |
CARGO_MAKE_RUN_CLIPPY: 1 | |
CARGO_MAKE_BUILD_BENCH: 1 | |
jobs: | |
rust: | |
name: Rust | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
target: [x86_64, i686, aarch64] | |
rust: | |
- stable | |
- beta | |
- nightly | |
- 1.81.0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Linux Install Rust toolchain | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
targets: ${{ matrix.target }}-unknown-linux-gnu | |
components: clippy,rustfmt | |
- name: Windows Install Rust toolchain | |
if: ${{ matrix.os == 'windows-latest' }} | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
targets: ${{ matrix.target }}-pc-windows-msvc | |
components: clippy,rustfmt | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install Cargo Make | |
if: ${{ matrix.target == 'x86_64' }} | |
uses: davidB/rust-cargo-make@v1 | |
- run: cargo make ci-flow | |
if: ${{ matrix.target == 'x86_64' }} | |
- name: linux cargo-make build-only | |
if: ${{ matrix.target != 'x86_64' && matrix.os == 'ubuntu-latest' }} | |
run: cargo build --all-features --target ${{ matrix.target }}-unknown-linux-gnu | |
- name: windows cargo-make build-only | |
if: ${{ matrix.target != 'x86_64' && matrix.os == 'windows-latest' }} | |
run: cargo build --all-features --target ${{ matrix.target }}-pc-windows-msvc | |
miri: | |
name: Miri | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
components: miri | |
- run: cargo miri test | |
env: | |
MIRIFLAGS: -Zmiri-strict-provenance |