diff --git a/.cirrus.yml b/.cirrus.yml index f34e6ab..7628f40 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -14,7 +14,7 @@ env: freebsd_task: name: test ($TARGET) freebsd_instance: - image_family: freebsd-12-4 + image_family: freebsd-13-2 matrix: - env: TARGET: x86_64-unknown-freebsd diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 713f346..8e1407e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,9 +65,10 @@ jobs: - name: Add rust-src if: startsWith(matrix.rust, 'nightly') run: rustup component add rust-src - - name: Check selected Tier 3 targets - if: startsWith(matrix.rust, 'nightly') && matrix.os == 'ubuntu-latest' - run: cargo check -Z build-std --target=riscv32imc-esp-espidf + # TODO: broken due to https://github.com/rust-lang/rust/pull/119026. + # - name: Check selected Tier 3 targets + # if: startsWith(matrix.rust, 'nightly') && matrix.os == 'ubuntu-latest' + # run: cargo check -Z build-std --target=riscv32imc-esp-espidf - name: Check haiku if: startsWith(matrix.rust, 'nightly') && matrix.os == 'ubuntu-latest' run: cargo check -Z build-std --target x86_64-unknown-haiku @@ -127,21 +128,14 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - # When updating this, the reminder to update the minimum supported - # Rust version in Cargo.toml. - rust: ['1.63'] steps: - uses: actions/checkout@v4 - - name: Install Rust - # --no-self-update is necessary because the windows environment cannot self-update rustup.exe. - run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} - - run: cargo build - - name: Install Other Targets - if: startsWith(matrix.os, 'ubuntu') - run: rustup target add x86_64-unknown-freebsd x86_64-unknown-netbsd - - run: cargo build --target x86_64-unknown-freebsd + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack + - run: cargo hack build --no-dev-deps --rust-version + - run: cargo hack build --no-dev-deps --rust-version --target x86_64-unknown-freebsd if: startsWith(matrix.os, 'ubuntu') - - run: cargo build --target x86_64-unknown-netbsd + - run: cargo hack build --no-dev-deps --rust-version --target x86_64-unknown-netbsd if: startsWith(matrix.os, 'ubuntu') clippy: diff --git a/src/iocp/mod.rs b/src/iocp/mod.rs index 16f9d6f..3800a2c 100644 --- a/src/iocp/mod.rs +++ b/src/iocp/mod.rs @@ -1152,7 +1152,7 @@ enum WaitableStatus { Idle, /// We are waiting on this handle to become signaled. - Waiting(WaitHandle), + Waiting(#[allow(dead_code)] WaitHandle), /// This handle has been cancelled. Cancelled,