Skip to content

Commit

Permalink
Refactor build script for arm64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
martincostello authored Dec 18, 2024
1 parent 4380bdb commit 65850f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:
if: runner.os == 'Linux'
shell: bash
run: |
apt_sources=/etc/apt/sources.list.d/ubuntu.sources
codename=$(lsb_release -c | awk '{print $2}')
sudo dpkg --add-architecture arm64
sudo mkdir -p /etc/apt/sources.list.d/
sudo bash -c "cat > /etc/apt/sources.list.d/ubuntu.sources <<EOF
sudo bash -c "cat > ${apt_sources} <<EOF
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: ${codename}
Expand Down Expand Up @@ -94,8 +94,8 @@ jobs:
Components: main restricted multiverse universe
Architectures: arm64
EOF"
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list.d/ubuntu.sources
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list.d/ubuntu.sources
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' "${apt_sources}"
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' "${apt_sources}"
sudo apt update
sudo apt install --yes clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu linux-libc-dev:arm64 zlib1g-dev:arm64
Expand Down

0 comments on commit 65850f1

Please sign in to comment.