diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 934b7767..5ae33fb2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,24 +9,28 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest, macOS-latest ] + toolchain: [ "1.80", stable ] runs-on: ${{ matrix.os }} env: RUSTFLAGS: -D warnings - RUSTDOCFLAGS: -D warnings steps: - uses: actions/checkout@v6 - name: Install rust stable uses: dtolnay/rust-toolchain@stable with: - toolchain: stable + toolchain: ${{ matrix.toolchain }} components: clippy - name: Build Default - run: cargo build --workspace --all-targets --verbose + run: cargo build -p baseview --verbose - name: Build All Features - run: cargo build --workspace --all-targets --all-features --verbose + run: cargo build -p baseview --all-features --verbose - name: Run tests - run: cargo test --workspace --all-targets --all-features --verbose + run: cargo test -p baseview --all-features --verbose + - name: Build examples + if: matrix.toolchain != '1.80' + run: cargo build --workspace --all-targets --verbose - name: Clippy + if: matrix.toolchain != '1.80' run: cargo clippy --all --all-features -- -D warnings checks: runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index ec2dc49a..d3b4d83a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ categories = ["gui"] repository = "https://github.com/RustAudio/baseview" exclude = [".github"] +rust-version = "1.80" [features] default = []