Add SIGNED to RangeablePrimitive
#183
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: tests | |
| on: | |
| push: | |
| branches: ['v*'] | |
| pull_request: | |
| jobs: | |
| miri: | |
| name: "Miri" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| we: [le, be] | |
| include: | |
| - we: be | |
| cc: --target s390x-unknown-linux-gnu | |
| - we: le | |
| cc: --target x86_64-unknown-linux-gnu | |
| steps: | |
| - uses: taiki-e/checkout-action@v1 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-${{ matrix.we }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install Miri | |
| run: | | |
| rustup toolchain install nightly --profile minimal -c miri ${{ matrix.cc }} --no-self-update | |
| rustup override set nightly | |
| cargo miri setup | |
| - name: Test with Miri | |
| run: cargo miri test --all --all-features ${{ matrix.cc }} | |
| checks: | |
| name: "Checks" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| tc: [1.85.0, stable, beta, nightly] | |
| include: | |
| - tc: stable | |
| rt: cargo test --all --all-features | |
| - tc: beta | |
| rt: cargo test --all --all-features | |
| - tc: nightly | |
| rt: cargo test --all --all-features | |
| - os: ubuntu-latest | |
| cc: -t aarch64-linux-android,i686-pc-windows-gnu,i686-unknown-linux-gnu,x86_64-unknown-illumos,i686-unknown-freebsd,x86_64-unknown-redox | |
| - os: macos-latest | |
| cc: -t aarch64-apple-ios,x86_64-apple-darwin,wasm32-wasip1,wasm32-unknown-unknown | |
| steps: | |
| - uses: taiki-e/checkout-action@v1 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-${{ matrix.tc }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install Rust | |
| run: | | |
| rustup toolchain install ${{ matrix.tc }} --profile minimal -c clippy,rustfmt ${{ matrix.cc }} --no-self-update | |
| rustup override set ${{ matrix.tc }} | |
| - if: ${{ matrix.rt }} | |
| name: Check code formatting | |
| run: cargo fmt --check | |
| - name: Checking clippy for warnings | |
| run: | | |
| cargo build --workspace --all-targets --all-features | |
| cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| cargo build --workspace | |
| cargo clippy --workspace -- -D warnings | |
| - if: ${{ matrix.cc }} | |
| name: Checking cross-compilation works | |
| run: | | |
| for target in $(echo ${{ matrix.cc }} | sed 's/-t //g' | sed 's/,/ /g') | |
| do | |
| cargo build --workspace --all-features "--target=$target" | |
| cargo clippy --workspace --all-features "--target=$target" -- -D warnings | |
| cargo build --workspace "--target=$target" | |
| cargo clippy --workspace "--target=$target" -- -D warnings | |
| done | |
| - name: Check doc generation succeeds | |
| run: cargo doc --all-features --no-deps | |
| # Only conditional since the tests MSRV is higher than the library's | |
| - if: ${{ matrix.rt }} | |
| name: Running tests | |
| run: ${{ matrix.rt }} |