Skip to content

Bump actions/checkout from 3 to 4 (#76) #276

Bump actions/checkout from 3 to 4 (#76)

Bump actions/checkout from 3 to 4 (#76) #276

Workflow file for this run

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
name: Rust
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: Install packages
run: sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: rustfmt
run: cargo fmt -- --check
build_and_test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- if: matrix.os == 'ubuntu-latest'
run: sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cargo test (stable)
run: cargo test --verbose
- uses: dtolnay/rust-toolchain@beta
- name: cargo test (beta)
run: cargo test --verbose
- uses: dtolnay/rust-toolchain@nightly
- name: cargo test (nightly)
run: cargo test --verbose