Files
regent/.gitea/workflows/ci.yaml
T
raucao 1ee4930f2b
CI / test (push) Successful in 3m40s
CI / test (pull_request) Successful in 49s
ci: run the job on a custom Arch image (I3)
The ubuntu-latest runner image ships GTK 4.22, which cannot satisfy the
crate's v4_24/v1_10 features (they want GTK >= 4.23 / libadwaita >= 1.10,
newer than the latest stable GNOME release), so the first CI run failed
compiling gdk4-sys. The GNOME OS SDK is no better.

Build a regent-ci image (build-aux/ci/) from Arch with the GTK/libadwaita
headers, a rustup-pinned toolchain and the static cargo-deny binary baked
in, register a repo-level runner with the matching label, and drop the
apt/rustup/install-action steps.

Bump url to 2.5.9 (RUSTSEC-2026-0592), which the cargo-deny step would
otherwise fail on.
2026-11-30 11:18:36 +04:00

43 lines
1.3 KiB
YAML

# Continuous integration for Regent (Gitea Actions).
#
# The job runs on the `regent-ci` runner, which is registered with the label
# `regent-ci:docker://gitea.kosmos.org/raucao/regent-ci:latest` (see
# doc/dev/development.md). That image bakes in the GTK 4 / libadwaita
# development headers, the Rust toolchain and cargo-deny, so this workflow
# installs nothing — the old ubuntu-latest job could not build against GTK 4.24
# and spent every run reinstalling the system and Rust dependencies.
#
# The Rust toolchain is pinned *in the image* (1.99.1): the `clippy -- -D
# warnings` gate is calibrated to a specific compiler, so a moving `stable`
# would reintroduce lint drift. `cargo-deny` fetches the RustSec advisory
# database at run time, so the job still needs network.
name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: regent-ci
steps:
- uses: actions/checkout@v4
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Test
run: cargo test --locked
- name: Clippy
run: cargo clippy --all-targets --locked -- -D warnings
- name: cargo-deny
run: cargo deny check