More flexibility on numerical/string doc id and quantization #112
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: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| RUST_LOG: info | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| build: | |
| name: Test on ${{ matrix.os }} and ${{ matrix.rust }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| rust: [stable, beta, nightly] | |
| steps: | |
| - uses: hecrj/setup-rust-action@v1 | |
| with: | |
| rust-version: ${{ matrix.rust }} | |
| - uses: actions/checkout@v2 | |
| - run: cargo test --verbose --workspace | |
| cargo-check: | |
| name: Check for warnings | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: hecrj/setup-rust-action@v1 | |
| - run: cargo check --workspace --all-targets --verbose | |
| clippy: | |
| name: Lint with Clippy | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: hecrj/setup-rust-action@v2 | |
| with: | |
| components: clippy | |
| - run: cargo clippy --workspace --all-targets --verbose | |
| rustfmt: | |
| name: Verify code formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: hecrj/setup-rust-action@v1 | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| check-rustdoc-links: | |
| name: Check intra-doc links | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: hecrj/setup-rust-action@v1 | |
| with: | |
| rust-version: nightly | |
| - run: cargo rustdoc --lib -- -D warnings | |
| - run: cargo rustdoc --bin pisa2ciff -- -D warnings | |
| - run: cargo rustdoc --bin ciff2pisa -- -D warnings | |
| miri: | |
| name: Miri test | |
| runs-on: ubuntu-latest | |
| env: | |
| RUST_LOG: quickcheck | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - run: | | |
| MIRI_NIGHTLY=$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri) | |
| echo "Installing latest nightly with Miri: $MIRI_NIGHTLY" | |
| rustup set profile minimal | |
| rustup toolchain install "nightly-$MIRI_NIGHTLY" | |
| rustup default "nightly-$MIRI_NIGHTLY" | |
| rustup component add miri | |
| cargo miri test --lib -Zmiri-disable-isolation |