Skip to content

refactoring

refactoring #52

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.os }}
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y \
pkg-config \
libx11-dev \
libxkbcommon-dev \
libwayland-dev \
libxcb1-dev \
libxrandr-dev \
libxcursor-dev \
libxi-dev \
libxinerama-dev \
libgl1-mesa-dev \
libegl1-mesa-dev \
libxcb-shape0-dev \
libxcb-xfixes0-dev
- name: Check
run: cargo check