From 03cea63143d13f64ebad4e20a1f14f5c500500b5 Mon Sep 17 00:00:00 2001 From: danny Date: Wed, 14 Oct 2026 18:40:17 +0200 Subject: [PATCH] M0.8: CI workflow running cargo xtask ci on macOS, Windows and Linux 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 --- .github/workflows/ci.yml | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..375b15c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +# 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