Add build and test CI
CI / build-and-test (pull_request) Failing after 5m59s

This commit is contained in:
2026-09-14 12:03:46 +02:00
parent 4861374aef
commit 9d786d1bd5
2 changed files with 55 additions and 4 deletions
+42
View File
@@ -0,0 +1,42 @@
name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- -y --profile minimal
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
"$HOME/.cargo/bin/rustup" toolchain install nightly --profile minimal
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
clang \
libasound2-dev \
libudev-dev \
libusb-1.0-0-dev \
libwayland-dev \
libx11-dev \
libxkbcommon-dev \
mold \
pkg-config
- name: Build
run: cargo build --locked
- name: Run unit tests
run: cargo test --locked --lib