Support VariableList longer than 2**31 on 32-bit architectures #116
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: test-suite | |
on: | |
push: | |
branches: | |
- main | |
- 'pr/*' | |
pull_request: | |
env: | |
# Deny warnings in CI | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
cargo-fmt: | |
name: cargo-fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get latest version of stable Rust | |
run: rustup update stable | |
- name: Check formatting with cargo fmt | |
run: cargo fmt --all -- --check | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: test-${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get latest version of stable Rust | |
run: rustup update stable | |
- name: Run tests | |
run: cargo test --release | |
cross-test-i686: | |
name: cross test i686-unknown-linux-gnu | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Add i686-unknown-linux-gnu target | |
run: rustup target add i686-unknown-linux-gnu | |
- name: Run cross test for i686-unknown-linux-gnu | |
run: cross test --target i686-unknown-linux-gnu | |
cross-test-i686-overflow: | |
name: cross test i686-unknown-linux-gnu (typenum overflow feature) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Add i686-unknown-linux-gnu target | |
run: rustup target add i686-unknown-linux-gnu | |
- name: Run cross test for i686-unknown-linux-gnu with cap-typenum-to-usize-overflow | |
run: cross test --target i686-unknown-linux-gnu --features cap-typenum-to-usize-overflow | |
coverage: | |
name: cargo-tarpaulin | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get latest version of stable Rust | |
run: rustup update stable | |
- name: Install cargo-tarpaulin | |
uses: taiki-e/install-action@cargo-tarpaulin | |
- name: Check code coverage with cargo-tarpaulin | |
run: cargo-tarpaulin --workspace --all-features --out xml | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
informational: true |