Skip to content

Commit

Permalink
fix: 修复arm平台apt仓库404问题 (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHandsome authored Jan 14, 2025
1 parent 5294b28 commit 600fe87
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/build_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,46 @@ jobs:
needs: set-date

steps:
- name: setup deb822 repos
run: |
if [[ $ImageOS == "ubuntu24" ]]; then
cat <<EOF > 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
Expand All @@ -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
Expand Down Expand Up @@ -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/[email protected]
with:
Expand Down

0 comments on commit 600fe87

Please sign in to comment.