@@ -47,29 +47,43 @@ jobs:
47
47
CGO_ENABLED : 1
48
48
GOOS : linux
49
49
GOARCH : arm64
50
- CC : " /usr/bin/aarch64-linux-gnu-gcc-11 "
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
57
sudo dpkg --add-architecture arm64
58
- echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | sudo tee /etc/apt/sources.list
59
- echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
60
- echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
61
- echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
62
- echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe" | sudo tee -a /etc/apt/sources.list
63
- echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe" | sudo tee -a /etc/apt/sources.list
64
- echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe"| sudo tee -a /etc/apt/sources.list
65
- echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe" | sudo tee -a /etc/apt/sources.list
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
78
+
79
+ sudo mv deb822sources /etc/apt/sources.list.d/ubuntu.sources
66
80
67
81
- name : Install GCC and SQLite for Arm64
68
82
shell : bash
69
83
run : |
70
84
sudo apt-get update
71
85
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \
72
- gcc-11 -aarch64-linux-gnu \
86
+ gcc-13 -aarch64-linux-gnu \
73
87
libsqlite3-dev:arm64 \
74
88
file
75
89
- name : Install Go
0 commit comments