Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nopanic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/backends/use_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Loading