Skip to content

Commit 0dc75fc

Browse files
committed
fix ubuntu24 repos
1 parent 848545a commit 0dc75fc

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build_latest.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,46 @@ jobs:
118118
needs: set-date
119119

120120
steps:
121+
- name: setup deb822 repos
122+
run: |
123+
if [[ $ImageOS == "ubuntu24" ]]; then
124+
cat <<EOF > deb822sources
125+
Types: deb
126+
URIs: http://archive.ubuntu.com/ubuntu/
127+
Suites: noble
128+
Components: main restricted universe
129+
Architectures: amd64
130+
131+
Types: deb
132+
URIs: http://security.ubuntu.com/ubuntu/
133+
Suites: noble-security
134+
Components: main restricted universe
135+
Architectures: amd64
136+
137+
Types: deb
138+
URIs: http://archive.ubuntu.com/ubuntu/
139+
Suites: noble-updates
140+
Components: main restricted universe
141+
Architectures: amd64
142+
143+
Types: deb
144+
URIs: http://azure.ports.ubuntu.com/ubuntu-ports/
145+
Suites: noble
146+
Components: main restricted multiverse universe
147+
Architectures: arm64
148+
149+
Types: deb
150+
URIs: http://azure.ports.ubuntu.com/ubuntu-ports/
151+
Suites: noble-updates
152+
Components: main restricted multiverse universe
153+
Architectures: arm64
154+
EOF
155+
156+
sudo mv deb822sources /etc/apt/sources.list.d/ubuntu.sources
157+
else
158+
sudo mv config/crosscomp-sources.list /etc/apt/sources.list
159+
fi
160+
121161
# https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/cross-compile
122162
- run: |
123163
sudo dpkg --add-architecture arm64

0 commit comments

Comments
 (0)