1name: No Default Features 2on: 3 push: 4 branches: 5 - main 6 pull_request: 7 8permissions: 9 contents: read 10 11# Cancel the workflow if a new one is triggered from the same PR, branch, or tag, except on main. 12concurrency: 13 group: ${{ github.workflow }}-${{ github.ref }} 14 cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} 15 16jobs: 17 no-default-features: 18 name: "No Default Features on ${{ matrix.os }}" 19 runs-on: ${{ matrix.os }} 20 strategy: 21 fail-fast: false 22 matrix: 23 os: [ubuntu-latest, macos-latest, windows-latest] 24 25 steps: 26 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 27 28 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 29 with: 30 toolchain: stable 31 target: i686-unknown-linux-gnu 32 33 - name: Using stable toolchain build the library and run the tests without default features 34 run: cargo +stable test --no-default-features -- --skip test_conformance 35 36 - name: Using stable toolchain build the library without default features for 32-bit target 37 if: runner.os == 'Linux' 38 run: cargo +stable check --target --target i686-unknown-linux-gnu --no-default-features 39 40 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 41 with: 42 toolchain: nightly 43 target: i686-unknown-linux-gnu 44 45 - name: Using nightly toolchain build the library and run the tests without default features 46 run: cargo +nightly test --no-default-features -- --skip test_conformance 47 48 - name: Using nightly toolchain build the library without default features for 32-bit target 49 if: runner.os == 'Linux' 50 run: cargo +nightly check --target --target i686-unknown-linux-gnu --no-default-features 51