Skip to content

Commit

Permalink
Rewrite install-ubuntu-arm64.sh for deb822
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyMartynov committed Oct 5, 2024
1 parent 690c0e8 commit e9e071a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- { os: windows-latest, rid: win-x64 }
- { os: windows-latest, rid: win-arm64 }
- { os: ubuntu-latest, rid: linux-x64 }
- { os: ubuntu-22.04, rid: linux-arm64 }
- { os: ubuntu-latest, rid: linux-arm64 }
- { os: macos-latest, rid: osx-x64 }
- { os: macos-latest, rid: osx-arm64 }

Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/install-ubuntu-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ if [ $(uname -m) != "x86_64" ] || [ -z "$CODENAME" ]; then
return 1
fi

sed -i 's|^deb |deb [arch=amd64] |g' /etc/apt/sources.list

cat >> /etc/apt/sources.list <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $CODENAME main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $CODENAME-updates main restricted
EOF
cp -f .github/workflows/install-ubuntu-arm64.sources /etc/apt/sources.list.d/ubuntu.sources
sed -i "s|CODENAME|$CODENAME|g" /etc/apt/sources.list.d/ubuntu.sources

dpkg --add-architecture arm64

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/install-ubuntu-arm64.sources
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Types: deb
URIs: http://azure.archive.ubuntu.com/ubuntu/
Suites: CODENAME CODENAME-updates CODENAME-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Architectures: amd64

Types: deb
URIs: http://azure.archive.ubuntu.com/ubuntu/
Suites: CODENAME-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Architectures: amd64

Types: deb
URIs: http://azure.ports.ubuntu.com/ubuntu-ports/
Suites: CODENAME CODENAME-updates CODENAME-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Architectures: arm64

Types: deb
URIs: http://azure.ports.ubuntu.com/ubuntu-ports/
Suites: CODENAME-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Architectures: arm64

0 comments on commit e9e071a

Please sign in to comment.