Update some dependencies #832
Workflow file for this run
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
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: '-C debuginfo=0' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
toolchain: [stable, beta] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install toolchain | |
run: | | |
rustup update --no-self-update ${{ matrix.toolchain }} | |
rustup default ${{ matrix.toolchain }} | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: 'v0-rust-2' | |
# `wayland` requires an extra dependecy that's not installed by default | |
# on the runner. Avoid using that feature for ubuntu CI | |
- name: Run test suite (ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: cargo test --workspace --no-default-features --features x11 | |
- name: Run test suite (non-ubuntu) | |
if: matrix.os != 'ubuntu-latest' | |
run: cargo test --workspace | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install toolchain | |
run: | | |
rustup update --no-self-update stable | |
rustup default stable | |
rustup component add clippy rustfmt | |
- name: Check spelling | |
uses: crate-ci/typos@master | |
- name: Formatting | |
run: cargo fmt --check | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Linting | |
run: cargo clippy --workspace --no-default-features --features x11 -- --deny warnings | |
build-macos-arm: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
toolchain: [stable, beta] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install target | |
run: | | |
rustup update --no-self-update ${{ matrix.toolchain }} | |
rustup default ${{ matrix.toolchain }} | |
rustup target add aarch64-apple-darwin | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build --target=aarch64-apple-darwin --no-default-features --features x11 |