Skip to content

test macos

test macos #75

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
strategy:

Check failure on line 10 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 10, Col: 5): Required property is missing: runs-on
matrix:
os:
- ubuntu-latest
- macos-latest
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 bench
# 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
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