fix(ci): clone to /tmp to avoid stale work-dir permissions, use hestia label
Some checks failed
Mirror to GitHub / mirror (push) Failing after 1s
release / build (push) Failing after 6s
Build and publish package / package (push) Failing after 38s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Breadway 2026-06-17 19:09:15 +08:00
parent 861d296462
commit cb558efdcc

View file

@ -11,18 +11,24 @@ env:
jobs: jobs:
build: build:
runs-on: hestia-host runs-on: hestia
defaults:
run:
working-directory: /tmp/breadpaper-build
steps: steps:
- name: checkout - name: checkout
working-directory: /tmp
run: | run: |
rm -rf /tmp/breadpaper-build
git clone --branch "${GITHUB_REF_NAME}" --depth 1 \ git clone --branch "${GITHUB_REF_NAME}" --depth 1 \
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" . "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" /tmp/breadpaper-build
- name: build - name: build
run: cargo build --release --locked run: /home/breadway/.cargo/bin/cargo build --release --locked
- name: test - name: test
run: cargo test --release --locked run: /home/breadway/.cargo/bin/cargo test --release --locked
- name: prepare artifacts - name: prepare artifacts
run: | run: |
@ -37,6 +43,7 @@ jobs:
ln -sfn "${VERSION}" "${DL_DIR}/breadpaper/latest" ln -sfn "${VERSION}" "${DL_DIR}/breadpaper/latest"
- name: ensure bread-ecosystem - name: ensure bread-ecosystem
working-directory: /tmp
run: | run: |
if [[ -d "${ECOSYSTEM_DIR}/.git" ]]; then if [[ -d "${ECOSYSTEM_DIR}/.git" ]]; then
git -C "${ECOSYSTEM_DIR}" pull --ff-only git -C "${ECOSYSTEM_DIR}" pull --ff-only
@ -46,4 +53,5 @@ jobs:
fi fi
- name: regenerate index.json - name: regenerate index.json
working-directory: /tmp
run: bash "${ECOSYSTEM_DIR}/scripts/gen-index.sh" run: bash "${ECOSYSTEM_DIR}/scripts/gen-index.sh"