@@ -47,41 +47,43 @@ jobs:
47
47
CGO_ENABLED : 1
48
48
GOOS : linux
49
49
GOARCH : arm64
50
- CC : " /usr/bin/aarch64-linux-gnu-gcc-14 "
50
+ CC : " /usr/bin/aarch64-linux-gnu-gcc-13 "
51
51
steps :
52
- # Patch azure archives for [ amd64, i386] use only and add
53
- # arm64 ports (derived from ryankurte/action-apt)
52
+ # Update sources to split out amd64 vs arm64 since arm64 is not supported on all mirrors
53
+ # adaped from https://github.com/shamil-mubarakshin/tests-repository/blob/main/.github/workflows/run-ubuntu-matrix.yml
54
54
- name : Update sources for arm64
55
55
shell : bash
56
56
run : |
57
- echo "Existing sources"
58
- cat /etc/apt/sources.list.d/ubuntu.sources
59
-
60
57
sudo dpkg --add-architecture arm64
61
- sudo rm /etc/apt/sources.list.d/ubuntu.sources
62
- echo "Types: deb" | sudo tee /etc/apt/sources.list.d/ubuntu.sources
63
- echo "URIs: mirror+file:/etc/apt/apt-mirrors.txt" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
64
- echo "Suites: noble noble-updates noble-backports noble-security" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
65
- echo "Components: main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
66
- echo "Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
67
- echo "Architectures: amd64" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
68
- echo "# Arm64 packages" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
69
- echo "Types: deb" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
70
- echo "URIs: http://ports.ubuntu.com/ubuntu-ports/" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
71
- echo "Suites: noble noble-updates noble-backports noble-security" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
72
- echo "Components: main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
73
- echo "Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
74
- echo "Architectures: arm64" | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
58
+ cat <<EOF > deb822sources
59
+ Types: deb
60
+ URIs: http://archive.ubuntu.com/ubuntu/
61
+ Suites: noble noble-updates
62
+ Components: main restricted universe
63
+ Architectures: amd64
64
+
65
+ Types: deb
66
+ URIs: http://security.ubuntu.com/ubuntu/
67
+ Suites: noble-security
68
+ Components: main restricted universe
69
+ Architectures: amd64
70
+
71
+ Types: deb
72
+ URIs: http://azure.ports.ubuntu.com/ubuntu-ports/
73
+ Suites: noble noble-updates
74
+ Components: main restricted multiverse universe
75
+ Architectures: arm64
76
+
77
+ EOF
75
78
76
- echo "Updated sources"
77
- cat /etc/apt/sources.list.d/ubuntu.sources
79
+ sudo mv deb822sources /etc/apt/sources.list.d/ubuntu.sources
78
80
79
81
- name : Install GCC and SQLite for Arm64
80
82
shell : bash
81
83
run : |
82
84
sudo apt-get update
83
85
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \
84
- gcc-14 -aarch64-linux-gnu \
86
+ gcc-13 -aarch64-linux-gnu \
85
87
libsqlite3-dev:arm64 \
86
88
file
87
89
- name : Install Go
0 commit comments