You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/linux-aarch64-nightly.yml
+35-18Lines changed: 35 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -32,21 +32,21 @@ jobs:
32
32
with:
33
33
targets: aarch64-unknown-linux-gnu
34
34
35
-
- name: Fix apt sources to jammy only
36
-
run: |
37
-
sudo sed -i 's/noble/jammy/g' /etc/apt/sources.list
38
-
sudo rm -f /etc/apt/sources.list.d/*.list
39
-
40
-
- name: Enable multiarch and add ARM64 ports repo
35
+
- name: Configure ARM64 repositories and Install Dependencies
41
36
run: |
42
37
sudo dpkg --add-architecture arm64
43
-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/arm64-ports.list
44
-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64-ports.list
45
-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64-ports.list
38
+
39
+
# Add ARM64 sources to a new file, preserving existing amd64 sources
40
+
sudo tee /etc/apt/sources.list.d/arm64-sources.list << EOF
41
+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse
42
+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse
43
+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse
44
+
EOF
45
+
46
46
sudo apt-get update
47
47
48
-
- name: Install cross-compilation dependencies
49
-
run: |
48
+
# Install required packages including cross-compilation tools and arm64 libraries
49
+
# Combine installations from your original two apt-get install steps
50
50
sudo apt-get install -y \
51
51
build-essential \
52
52
pkg-config \
@@ -68,28 +68,48 @@ jobs:
68
68
libfuse2 \
69
69
qemu-user-static
70
70
71
-
- name: Setup pkg-config for cross compilation
71
+
# Configure pkg-config for cross-compilation (this part seems okay)
0 commit comments