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