diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37c40cb2..e301510b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: macos: name: Apple Other # visionOS requires Xcode 15.2+, which is only available on the arm64 runners. - runs-on: macos-14 + runs-on: macos-15 steps: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@nightly @@ -32,7 +32,7 @@ jobs: - run: cargo test --no-run --target=aarch64-apple-tvos -Zbuild-std --features=std - run: cargo test --no-run --target=aarch64-apple-watchos -Zbuild-std --features=std # visionOS requires Xcode 15.2+, GitHub Actions defaults to an older version. - - run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - run: sudo xcode-select -switch /Applications/Xcode_16.app # std is broken on visionOS right now #- run: cargo test --no-run --target=aarch64-apple-visionos -Zbuild-std --features=std diff --git a/.github/workflows/nopanic.yaml b/.github/workflows/nopanic.yaml index 54f794d3..59816c99 100644 --- a/.github/workflows/nopanic.yaml +++ b/.github/workflows/nopanic.yaml @@ -117,7 +117,7 @@ jobs: macos: name: macOS - runs-on: macos-14 + runs-on: macos-15 steps: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0125ea00..aa00763c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: # Only Test macOS on stable to reduce macOS CI jobs include: # aarch64-apple-darwin. - - os: macos-14 + - os: macos-15 toolchain: stable steps: - uses: actions/checkout@v7 @@ -96,12 +96,12 @@ jobs: run: cargo test - name: Test getrandom_backend="extern_impl" env: - RUSTFLAGS: -Dwarnings --cfg getrandom_backend="extern_impl" + RUSTFLAGS: -Dwarnings -Aincomplete_features --cfg getrandom_backend="extern_impl" run: cargo test ios: name: iOS Simulator - runs-on: macos-14 + runs-on: macos-15 steps: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master @@ -110,7 +110,7 @@ jobs: targets: aarch64-apple-ios-sim - name: Install precompiled cargo-dinghy run: | - VERSION=0.8.1 + VERSION=0.8.6 URL="https://github.com/sonos/dinghy/releases/download/${VERSION}/cargo-dinghy-macos-${VERSION}.tgz" wget -O - $URL | tar -xz --strip-components=1 -C ~/.cargo/bin - name: Check cargo-dinghy version. @@ -129,7 +129,7 @@ jobs: echo "device=$SIM_ID" >> $GITHUB_ENV - uses: Swatinem/rust-cache@v2 - name: Run tests - run: cargo dinghy -p auto-ios-aarch64-sim -d ${{ env.device }} test + run: RUST_BACKTRACE=1 cargo dinghy -p auto-ios-aarch64-sim -d ${{ env.device }} test -- --nocapture windows: name: Windows diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 328e36b2..e5b39061 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -114,7 +114,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Generate Docs env: - RUSTDOCFLAGS: -Dwarnings --cfg docsrs --cfg getrandom_backend="extern_impl" + RUSTDOCFLAGS: -Dwarnings -Aincomplete_features --cfg docsrs --cfg getrandom_backend="extern_impl" run: cargo doc --no-deps --features std,sys_rng typos: diff --git a/src/backends/use_file.rs b/src/backends/use_file.rs index a1d372a0..b5562532 100644 --- a/src/backends/use_file.rs +++ b/src/backends/use_file.rs @@ -161,7 +161,7 @@ mod sync { /// Wake up all threads which wait for value of atomic `FD` to change. pub(super) fn wake() { let op = libc::FUTEX_WAKE | libc::FUTEX_PRIVATE_FLAG; - let ret = unsafe { libc::syscall(libc::SYS_futex, &FD, op, libc::INT_MAX) }; + let ret = unsafe { libc::syscall(libc::SYS_futex, &FD, op, libc::c_int::MAX) }; debug_assert!(ret >= 0); }