From 600fe8711e4c5a73cbd8821e4ff0d731d051ddff Mon Sep 17 00:00:00 2001 From: XuHandsome Date: Tue, 14 Jan 2025 22:55:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Darm=E5=B9=B3=E5=8F=B0a?= =?UTF-8?q?pt=E4=BB=93=E5=BA=93404=E9=97=AE=E9=A2=98=20(#976)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_latest.yml | 44 ++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_latest.yml b/.github/workflows/build_latest.yml index 1a1e3a26a..3f8c46e68 100644 --- a/.github/workflows/build_latest.yml +++ b/.github/workflows/build_latest.yml @@ -60,6 +60,46 @@ jobs: needs: set-date steps: + - name: setup deb822 repos + run: | + if [[ $ImageOS == "ubuntu24" ]]; then + cat < deb822sources + Types: deb + URIs: http://archive.ubuntu.com/ubuntu/ + Suites: noble + Components: main restricted universe + Architectures: amd64 + + Types: deb + URIs: http://security.ubuntu.com/ubuntu/ + Suites: noble-security + Components: main restricted universe + Architectures: amd64 + + Types: deb + URIs: http://archive.ubuntu.com/ubuntu/ + Suites: noble-updates + Components: main restricted universe + Architectures: amd64 + + Types: deb + URIs: http://azure.ports.ubuntu.com/ubuntu-ports/ + Suites: noble + Components: main restricted multiverse universe + Architectures: arm64 + + Types: deb + URIs: http://azure.ports.ubuntu.com/ubuntu-ports/ + Suites: noble-updates + Components: main restricted multiverse universe + Architectures: arm64 + EOF + + sudo mv deb822sources /etc/apt/sources.list.d/ubuntu.sources + else + sudo mv config/crosscomp-sources.list /etc/apt/sources.list + fi + # https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/cross-compile - run: | sudo dpkg --add-architecture arm64 @@ -72,7 +112,7 @@ jobs: sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list sudo apt-get update sudo apt-get install -y curl wget libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-dev clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64 - + - uses: actions/checkout@v1 - name: Set up dotnet @@ -133,7 +173,7 @@ jobs: with: name: BBDown_osx-x64 path: BBDown_${{ needs.set-date.outputs.date }}_osx-x64.zip - + - name: Upload Artifact [osx-arm64] uses: actions/upload-artifact@v3.1.3 with: