CI: port breadcrumbs onto bread-ecosystem's shared Arch build image
All checks were successful
check / check (push) Successful in 41s
All checks were successful
check / check (push) Successful in 41s
Adds ci/build.sh + ci/bread-ecosystem.rev (pinned to bread-ecosystem 147cfbb) following the pattern proven in breadpad, so releases build inside the shared pinned container instead of installing toolchain deps directly on the bare runner. Routes dev/rc/release build+test steps through it and adds a check.yml for fast clippy/test feedback on feature/fix branches. No ci/deps.txt — breadcrumbs' dependencies (clap/serde/toml/serde_json) are pure Rust with no system library needs; nmcli/tailscale/sudo/xdg-open are shelled out to, not linked.
This commit is contained in:
parent
b3444337ab
commit
fe9ddbda57
6 changed files with 50 additions and 4 deletions
24
.forgejo/workflows/check.yml
Normal file
24
.forgejo/workflows/check.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue