remove feature flag for perf integration #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Rust | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
- 1.77.0 # MSRV | |
steps: | |
- run: sudo apt-get update | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- run: cargo build | |
- run: cargo build --features perf_event | |
- run: cargo bench --features perf_event | |
# test filter parameter for cargo bench | |
- run: "[ $(cargo bench | wc -l) -gt $(cargo bench 15 | wc -l) ]" | |
lint: | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- nightly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt, clippy | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy --all -- -D warnings | |
- run: cargo clippy --features perf_event --all -- -D warnings | |
semver: | |
name: semver | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check semver | |
uses: obi1kenobi/cargo-semver-checks-action@v2 | |
with: | |
rust-toolchain: ${{ env.rust_stable }} | |
release-type: minor |