Decode full streams in parallel from an existing index #46
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy,rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy --workspace --all-targets --locked -- -D warnings | |
| - run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --locked | |
| - run: cargo test --workspace --doc --locked | |
| - run: cmp LICENSE-MIT crates/rapidgzip-core/LICENSE-MIT | |
| - run: cmp LICENSE-MIT crates/rapidgzip-rust-cli/LICENSE-MIT | |
| - run: cmp LICENSE-BSD-3-CLAUSE crates/rapidgzip-core/LICENSE-BSD-3-CLAUSE | |
| - run: cmp LICENSE-BSD-3-CLAUSE crates/rapidgzip-rust-cli/LICENSE-BSD-3-CLAUSE | |
| - run: cargo package --workspace --locked | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo test --workspace --all-targets --locked | |
| aarch64: | |
| # Exercise the AArch64 build and baseline NEON dispatch on native hardware. | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: rustc --version --verbose | |
| - run: cargo test --workspace --all-targets --locked | |
| index-interop: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install bgzip | |
| run: sudo apt-get update && sudo apt-get install -y tabix zlib1g-dev | |
| - name: Install indexed_gzip | |
| run: python3 -m pip install --user indexed_gzip | |
| - name: Build gztool | |
| run: | | |
| git clone --depth 1 --branch v1.8.2 https://github.com/circulosmeos/gztool.git /tmp/gztool | |
| cc -O2 -std=gnu11 -o /usr/local/bin/gztool /tmp/gztool/gztool.c -lz -lm | |
| - run: bgzip --version && gztool -h | head -1 && python3 -c "import indexed_gzip" | |
| - run: cargo test -p rapidgzip-core --test index_interop --locked -- --ignored --nocapture | |
| msrv: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@1.87.0 | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo check --workspace --all-targets --locked |