Add arm64 (linux) to CI test matrix (#76) #665
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
| on: | |
| push: | |
| branches: ["*"] | |
| pull_request: | |
| name: Test, rustfmt, and Clippy (64 bit) | |
| jobs: | |
| test-64bit: | |
| name: Run tests | |
| runs-on: ${{ matrix.os }} | |
| permissions: write-all | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, ubuntu-24.04-arm, macos-latest] | |
| rust: | |
| - stable | |
| steps: | |
| - name: Cancel previous runs | |
| uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@v4.2.2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| submodules: recursive | |
| - uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - uses: Swatinem/rust-cache@v2.7.5 | |
| - uses: taiki-e/install-action@cargo-hack | |
| - run: sudo apt-get update -y | |
| if: matrix.os == 'ubuntu-24.04' | |
| - name: cargo check (powerset) | |
| run: cargo hack check --feature-powerset --no-dev-deps | |
| - name: cargo check examples (powerset) | |
| run: cargo hack check --examples --feature-powerset | |
| - name: run tests (powerset) | |
| run: | | |
| cargo hack test --all-targets --feature-powerset | |
| - name: run doc tests (powerset) | |
| run: | | |
| cargo hack test --doc --feature-powerset | |
| - name: run examples | |
| run: | | |
| cargo run --example from_vcf --features=noodles | |
| cargo run --example from_vcf_indexed --features=noodles | |
| cargo run --example from_tskit --features=tskit | |
| fmt: | |
| name: rustfmt | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| submodules: recursive | |
| - uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: rustfmt | |
| - run: | | |
| /bin/bash -c "find src -type f | xargs rustfmt --check" | |
| clippy: | |
| name: cargo clippy | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| rust: | |
| - stable | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| - uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2.7.5 | |
| - uses: taiki-e/install-action@cargo-hack | |
| - name: clippy (all targets, feature powerset) | |
| run: cargo hack clippy --all-targets --feature-powerset -- -D warnings | |
| # msrv: | |
| # name: Verify MSRV | |
| # runs-on: ubuntu-24.04 | |
| # strategy: | |
| # matrix: | |
| # rust: | |
| # - 1.71.0 | |
| # steps: | |
| # - uses: actions/checkout@v4.2.2 | |
| # - uses: dtolnay/rust-toolchain@v1 | |
| # with: | |
| # toolchain: ${{ matrix.rust }} | |
| # - uses: taiki-e/install-action@cargo-hack | |
| # - name: cargo check msrv | |
| # run: cargo hack check --feature-powerset |