All checks were successful
check / check (push) Successful in 1m37s
Ports breadbox onto the shared, pinned CI build image (following the pattern proven in breadpad): ci/build.sh delegates to bread-ecosystem's own ci/build.sh, pinned by commit sha in ci/bread-ecosystem.rev, instead of building directly on the bare self-hosted runner. Also adds check.yml to run clippy/test on feature/fix branches ahead of the dev-track release build. No ci/deps.txt: breadbox's Cargo.toml pulls in nothing beyond what the shared Containerfile already installs (gtk4, gtk4-layer-shell). The librsvg system dep in bakery.toml is a runtime gdk-pixbuf loader for SVG icons, not a Cargo build dependency.
24 lines
695 B
YAML
24 lines
695 B
YAML
name: check
|
|
|
|
# Fast-fail lint/test on short-lived work branches, before it ever reaches
|
|
# main and triggers a dev-track release build.
|
|
on:
|
|
push:
|
|
branches: ['feature/**', 'fix/**']
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: [self-hosted, hestia]
|
|
steps:
|
|
- name: checkout
|
|
run: |
|
|
set -euo pipefail
|
|
rm -rf src && mkdir src
|
|
git clone --branch "${GITHUB_REF_NAME}" --depth 1 \
|
|
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" src
|
|
|
|
- name: clippy
|
|
run: cd src && bash ci/build.sh cargo clippy --workspace --all-targets --locked -- -D warnings
|
|
|
|
- name: test
|
|
run: cd src && bash ci/build.sh cargo test --workspace --locked
|