From b0ae1093d6bf96dabadd02eaa801fb3c4a37aa14 Mon Sep 17 00:00:00 2001 From: lincube Date: Wed, 12 Aug 2026 00:26:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(action).=E7=8E=B2=E7=8F=91=E6=98=AF?= =?UTF-8?q?=E4=BB=80=E4=B9=88=E4=B8=9C=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a168c7..d74517b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -650,17 +650,24 @@ jobs: - name: Install Linglong build tools run: | - # Add Linglong repository for Ubuntu 24.04 - echo "deb [trusted=yes] https://ci.deepin.com/repo/obs/linglong:/CI:/release/xUbuntu_24.04/ ./" | sudo tee /etc/apt/sources.list.d/linglong.list - sudo apt-get update - + # Add Linglong repository for Ubuntu 24.04 (deepin OBS path is case-sensitive: Ubuntu_24.04) + echo "deb [trusted=yes] https://ci.deepin.com/repo/obs/linglong:/CI:/release/Ubuntu_24.04/ ./" | sudo tee /etc/apt/sources.list.d/linglong.list + + # Update may fail if the Linglong mirror is unreachable; that must not fail the whole + # Linux release. Fall through to the graceful-skip path below. + sudo apt-get update || { + echo "::warning::apt-get update failed (Linglong repo unreachable), skipping Linglong build" + echo "LINGLONG_AVAILABLE=false" >> $GITHUB_ENV + exit 0 + } + # Install Linglong builder and CLI sudo apt-get install -y linglong-bin linglong-builder || { echo "::warning::Failed to install Linglong tools, skipping Linglong build" echo "LINGLONG_AVAILABLE=false" >> $GITHUB_ENV exit 0 } - + # Verify installation if command -v ll-builder &> /dev/null; then ll-builder --version