Skip to content

Commit f4458c9

Browse files
committed
Try again with GCC 13 and different set of mirrors
1 parent 0c0a5ea commit f4458c9

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

.github/workflows/test.yml

+25-23
Original file line numberDiff line numberDiff line change
@@ -47,41 +47,43 @@ jobs:
4747
CGO_ENABLED: 1
4848
GOOS: linux
4949
GOARCH: arm64
50-
CC: "/usr/bin/aarch64-linux-gnu-gcc-14"
50+
CC: "/usr/bin/aarch64-linux-gnu-gcc-13"
5151
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
5454
- name: Update sources for arm64
5555
shell: bash
5656
run: |
57-
echo "Existing sources"
58-
cat /etc/apt/sources.list.d/ubuntu.sources
59-
6057
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
7578
76-
echo "Updated sources"
77-
cat /etc/apt/sources.list.d/ubuntu.sources
79+
sudo mv deb822sources /etc/apt/sources.list.d/ubuntu.sources
7880
7981
- name: Install GCC and SQLite for Arm64
8082
shell: bash
8183
run: |
8284
sudo apt-get update
8385
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \
84-
gcc-14-aarch64-linux-gnu \
86+
gcc-13-aarch64-linux-gnu \
8587
libsqlite3-dev:arm64 \
8688
file
8789
- name: Install Go

0 commit comments

Comments
 (0)