From 587a1ef07b6c936f3dc20aacda6d0f64f845f733 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Sat, 10 Oct 2026 01:46:49 +0800 Subject: [PATCH] [ci] fix Linux release artifact paths in containers --- .github/workflows/build.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3605d21c..63b99d99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -177,13 +177,26 @@ jobs: verify-crossdesk-glibc-baseline "${VERIFY_DIR}" 2.31 done + - name: Stage Linux release artifacts + shell: bash + run: | + mkdir -p linux-artifacts + for PACKAGE in crossdesk crossdesk-virtual-desktop-xfce; do + FILE="${PACKAGE}-linux-${{ matrix.arch }}-${LEGAL_VERSION}.deb" + if [[ ! -s "${FILE}" ]]; then + echo "::error::Missing or empty Linux package: ${FILE}" + exit 1 + fi + cp "${FILE}" linux-artifacts/ + done + - name: Upload artifact uses: actions/upload-artifact@v6 with: name: crossdesk-linux-${{ matrix.arch }}-${{ env.LEGAL_VERSION }} - path: | - ${{ github.workspace }}/crossdesk-linux-${{ matrix.arch }}-${{ env.LEGAL_VERSION }}.deb - ${{ github.workspace }}/crossdesk-virtual-desktop-xfce-linux-${{ matrix.arch }}-${{ env.LEGAL_VERSION }}.deb + # A single relative directory avoids container translation of multiline + # absolute paths and keeps both package filenames at the artifact root. + path: linux-artifacts/ if-no-files-found: error # macOS