GitHub Actions matrix (ubuntu-24.04, macos-15, windows-2025) with the Tauri and xcap system packages on Linux, stable Rust with clippy and rustfmt, cargo-deny, pnpm from ui/package.json and Node 22. Not run yet: the repository has no remote until the owner decides on hosting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
# Runs the full quality gate (`cargo xtask ci`) on macOS, Windows and Linux
|
|
# for every push and pull request.
|
|
|
|
name: ci
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_INCREMENTAL: "0"
|
|
|
|
jobs:
|
|
ci:
|
|
name: ci (${{ matrix.os }})
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-24.04, macos-15, windows-2025]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Linux system packages (Tauri, xcap)
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf \
|
|
libxcb1-dev libxcb-randr0-dev libxrandr-dev libdbus-1-dev \
|
|
libpipewire-0.3-dev libspa-0.2-dev libwayland-dev libegl-dev libgbm-dev \
|
|
clang libclang-dev pkg-config
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy, rustfmt
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-deny
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
package_json_file: ui/package.json
|
|
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: ui/pnpm-lock.yaml
|
|
|
|
- name: Quality gate
|
|
run: cargo xtask ci
|