Skip to content

Commit

Permalink
Add macOS to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 18, 2021
1 parent dba57a2 commit b46fa6a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ jobs:
include:
- rust: 1.36.0
os: ubuntu-latest
- rust: 1.36.0
os: macos-latest
- rust: 1.36.0
os: windows-latest
- rust: stable
os: ubuntu-latest
- rust: stable
os: macos-latest
- rust: stable
os: windows-latest
- rust: nightly
os: ubuntu-latest
# TODO: https://github.com/crossbeam-rs/crossbeam/pull/518#issuecomment-633342606
# - rust: nightly
# os: macos-latest
- rust: nightly
os: macos-latest
- rust: nightly
os: windows-latest
- rust: nightly
Expand Down
2 changes: 2 additions & 0 deletions crossbeam-channel/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ pub fn bounded<T>(cap: usize) -> (Sender<T>, Receiver<T>) {
/// When the message gets sent:
///
/// ```
/// # if cfg!(target_os = "macos") { return; } // TODO: assertions failed due to GitHub Actions' macOS runner is slow
/// use std::thread;
/// use std::time::{Duration, Instant};
/// use crossbeam_channel::after;
Expand Down Expand Up @@ -289,6 +290,7 @@ pub fn never<T>() -> Receiver<T> {
/// When messages get sent:
///
/// ```
/// # if cfg!(target_os = "macos") { return; } // TODO: assertions failed due to GitHub Actions' macOS runner is slow
/// use std::thread;
/// use std::time::{Duration, Instant};
/// use crossbeam_channel::tick;
Expand Down
2 changes: 2 additions & 0 deletions crossbeam-channel/tests/after.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Tests for the after channel flavor.
#![cfg(not(target_os = "macos"))] // TODO: assertions failed due to GitHub Actions' macOS runner is slow

use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;
use std::thread;
Expand Down
2 changes: 2 additions & 0 deletions crossbeam-channel/tests/never.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Tests for the never channel flavor.
#![cfg(not(target_os = "macos"))] // TODO: assertions failed due to GitHub Actions' macOS runner is slow

use std::thread;
use std::time::{Duration, Instant};

Expand Down
2 changes: 2 additions & 0 deletions crossbeam-channel/tests/ready.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Tests for channel readiness using the `Select` struct.
#![cfg(not(target_os = "macos"))] // TODO: assertions failed due to GitHub Actions' macOS runner is slow

use std::any::Any;
use std::cell::Cell;
use std::thread;
Expand Down
2 changes: 2 additions & 0 deletions crossbeam-channel/tests/select.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Tests for channel selection using the `Select` struct.
#![cfg(not(target_os = "macos"))] // TODO: assertions failed due to GitHub Actions' macOS runner is slow

use std::any::Any;
use std::cell::Cell;
use std::thread;
Expand Down
1 change: 1 addition & 0 deletions crossbeam-channel/tests/select_macro.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Tests for the `select!` macro.
#![cfg(not(target_os = "macos"))] // TODO: assertions failed due to GitHub Actions' macOS runner is slow
#![forbid(unsafe_code)] // select! is safe.

use std::any::Any;
Expand Down
2 changes: 2 additions & 0 deletions crossbeam-channel/tests/tick.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Tests for the tick channel flavor.
#![cfg(not(target_os = "macos"))] // TODO: assertions failed due to GitHub Actions' macOS runner is slow

use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;
use std::thread;
Expand Down

0 comments on commit b46fa6a

Please sign in to comment.