Skip to content

Commit

Permalink
run CI on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed May 19, 2024
1 parent c220d17 commit 3038701
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
rust:
- stable
- beta
Expand All @@ -25,8 +28,7 @@ jobs:
override: true

- run: cargo build
- run: cargo build --features perf_event
- run: cargo bench --features perf_event
- run: cargo bench
# test filter parameter for cargo bench
- run: "[ $(cargo bench | wc -l) -gt $(cargo bench 15 | wc -l) ]"

Expand All @@ -49,7 +51,7 @@ jobs:

- run: cargo fmt --all -- --check
- run: cargo clippy --all -- -D warnings
- run: cargo clippy --features perf_event --all -- -D warnings
- run: cargo clippy --all -- -D warnings

semver:
name: semver
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ yansi = { version = "1.0.1", features = ["detect-env", "detect-tty"] }
rustop = "=1.1.4"

[target.'cfg(target_os = "linux")'.dependencies]
perf-event = { version = "0.1" }
perf-event = { version = "0.4.8" }

[features]
real_blackbox = []
Expand Down

0 comments on commit 3038701

Please sign in to comment.