All checks were successful
check / check (push) Successful in 4s
Ports breadpaper onto bread-ecosystem's shared, pinned Arch build image/script instead of installing toolchain/libraries directly on the bare self-hosted runner. Follows the pattern proven in breadpad: ci/build.sh clones bread-ecosystem pinned to the sha in ci/bread-ecosystem.rev and delegates to its ci/build.sh. breadpaper needs nothing beyond the shared image's base package set (only clap/anyhow as deps, no image-processing or GTK crates), so no ci/deps.txt is added. Also adds check.yml: clippy + test on feature/**/fix/** pushes, as a fast pre-release-build signal, matching breadpaper's own build/test flags (--release --locked, no --workspace since this isn't a workspace).
24 lines
681 B
YAML
24 lines
681 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 --all-targets --locked -- -D warnings
|
|
|
|
- name: test
|
|
run: cd src && bash ci/build.sh cargo test --release --locked
|