|
32 | 32 | with: |
33 | 33 | python-version: "3.14" |
34 | 34 | - name: Setup Rust |
35 | | - uses: actions-rs/toolchain@v1 |
36 | | - with: |
37 | | - profile: minimal |
38 | | - toolchain: ${{ matrix.rust }} |
39 | | - override: true |
| 35 | + uses: dtolnay/rust-toolchain@stable |
40 | 36 | - name: Build |
41 | 37 | run: cargo build --verbose |
42 | 38 | - name: Run tests with num-bigint |
|
45 | 41 | run: cargo test --verbose --features ${{ matrix.features }},num-bigint --release |
46 | 42 | - name: Run tests with malachite-bigint |
47 | 43 | run: cargo test --verbose --features ${{ matrix.features }},malachite-bigint |
| 44 | + |
| 45 | + # macOS-specific cross-compilation checks |
| 46 | + - name: Setup Intel macOS target |
| 47 | + if: runner.os == 'macOS' |
| 48 | + run: rustup target add x86_64-apple-darwin |
| 49 | + - name: Check Intel macOS |
| 50 | + if: runner.os == 'macOS' |
| 51 | + run: cargo check --target x86_64-apple-darwin --features ${{ matrix.features }},malachite-bigint |
| 52 | + |
| 53 | + - name: Setup iOS target |
| 54 | + if: runner.os == 'macOS' |
| 55 | + run: rustup target add aarch64-apple-ios |
| 56 | + - name: Check iOS |
| 57 | + if: runner.os == 'macOS' |
| 58 | + run: cargo check --target aarch64-apple-ios --features ${{ matrix.features }},malachite-bigint |
| 59 | + |
| 60 | + exotic_targets: |
| 61 | + name: Check exotic targets |
| 62 | + runs-on: ubuntu-latest |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v4 |
| 65 | + - uses: dtolnay/rust-toolchain@stable |
| 66 | + |
| 67 | + # 32-bit Linux |
| 68 | + - name: Setup i686-unknown-linux-gnu |
| 69 | + run: rustup target add i686-unknown-linux-gnu |
| 70 | + - name: Install gcc-multilib |
| 71 | + run: sudo apt-get update && sudo apt-get install -y gcc-multilib |
| 72 | + - name: Check i686-unknown-linux-gnu |
| 73 | + run: cargo check --target i686-unknown-linux-gnu --features complex,malachite-bigint |
| 74 | + |
| 75 | + # Android |
| 76 | + - name: Setup aarch64-linux-android |
| 77 | + run: rustup target add aarch64-linux-android |
| 78 | + - name: Check aarch64-linux-android |
| 79 | + run: cargo check --target aarch64-linux-android --features complex,malachite-bigint |
| 80 | + |
| 81 | + # ARM64 Linux |
| 82 | + - name: Setup aarch64-unknown-linux-gnu |
| 83 | + run: rustup target add aarch64-unknown-linux-gnu |
| 84 | + - name: Install gcc-aarch64-linux-gnu |
| 85 | + run: sudo apt-get install -y gcc-aarch64-linux-gnu |
| 86 | + - name: Check aarch64-unknown-linux-gnu |
| 87 | + run: cargo check --target aarch64-unknown-linux-gnu --features complex,malachite-bigint |
| 88 | + |
| 89 | + # musl |
| 90 | + - name: Setup i686-unknown-linux-musl |
| 91 | + run: rustup target add i686-unknown-linux-musl |
| 92 | + - name: Install musl-tools |
| 93 | + run: sudo apt-get install -y musl-tools |
| 94 | + - name: Check i686-unknown-linux-musl |
| 95 | + run: cargo check --target i686-unknown-linux-musl --features complex,malachite-bigint |
| 96 | + |
| 97 | + # FreeBSD |
| 98 | + - name: Setup x86_64-unknown-freebsd |
| 99 | + run: rustup target add x86_64-unknown-freebsd |
| 100 | + - name: Check x86_64-unknown-freebsd |
| 101 | + run: cargo check --target x86_64-unknown-freebsd --features complex,malachite-bigint |
| 102 | + |
| 103 | + clippy: |
| 104 | + name: Clippy |
| 105 | + runs-on: ubuntu-latest |
| 106 | + steps: |
| 107 | + - uses: actions/checkout@v4 |
| 108 | + - uses: dtolnay/rust-toolchain@stable |
| 109 | + with: |
| 110 | + components: clippy |
| 111 | + - name: Run clippy |
| 112 | + run: cargo clippy --features complex,malachite-bigint -- -Dwarnings |
0 commit comments