mirror of
https://github.com/tobi/disktree.git
synced 2026-11-28 16:00:45 +00:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check:
|
|
name: Lint and test
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
# What GPUI links against: windowing (Wayland, X11), input, fonts,
|
|
# and the Vulkan loader.
|
|
- name: System libraries
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
pkg-config libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev \
|
|
libx11-xcb-dev libxcb1-dev libfontconfig-dev libfreetype-dev \
|
|
libvulkan-dev libasound2-dev libssl-dev libzstd-dev
|
|
|
|
# Pinned: the lint gate denies clippy::all and ::pedantic, and a newer
|
|
# clippy's new lints are a change to make on purpose, not by surprise.
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: "1.97"
|
|
components: clippy, rustfmt
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Lint
|
|
run: cargo xtask lint
|
|
|
|
- name: Test
|
|
run: cargo xtask test
|