From 0dc75fc1af982fd1ee2693c51e592a199b13c8da Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 11 Mar 2025 23:16:23 +0800 Subject: [PATCH] fix ubuntu24 repos --- .github/workflows/build_latest.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/build_latest.yml b/.github/workflows/build_latest.yml index 4305991..65f5f7f 100644 --- a/.github/workflows/build_latest.yml +++ b/.github/workflows/build_latest.yml @@ -118,6 +118,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