CI: migrate to bread-ecosystem's shared Arch build image
Some checks failed
check / check (push) Failing after 32s
Some checks failed
check / check (push) Failing after 32s
Routes the release build/test steps and a new fast pre-release check.yml through ci/build.sh, which delegates to bread-ecosystem's pinned shared Containerfile/build.sh instead of building against whatever the bare hestia runner happens to have installed. Follows the pattern already proven in breadpad. No extra ci/deps.txt: bread's system_deps (systemd-libs, openssl, zlib) are all already pulled in transitively by the shared image's base + git packages.
This commit is contained in:
parent
a6973360bd
commit
9c4f23f499
6 changed files with 52 additions and 6 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 --workspace --all-targets --locked -- -D warnings
|
||||
|
||||
- name: test
|
||||
run: cd src && bash ci/build.sh cargo test --workspace --locked
|
||||
Loading…
Add table
Add a link
Reference in a new issue