Skip to content

Enforce MSRV to 1.64 (for now) #772

Enforce MSRV to 1.64 (for now)

Enforce MSRV to 1.64 (for now) #772

Workflow file for this run

name: Rust
on: [ push, pull_request ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
toolchain: [ "1.64", stable, beta, nightly ]
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: Install XCB and GL dependencies
if: contains(matrix.os, 'ubuntu')
run: sudo apt-get install libx11-dev libxcb1-dev libx11-xcb-dev libgl1-mesa-dev
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
- name: Build Default
run: cargo build --workspace --all-targets --verbose
- name: Build All Features
run: cargo build --workspace --all-targets --all-features --verbose
- name: Run tests
run: cargo test --workspace --all-targets --all-features --verbose
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Check rustfmt
run: cargo fmt --all -- --check
- name: Check docs
run: cargo doc --examples --all-features --no-deps