Skip to content

Commit

Permalink
Use ARM64 runner
Browse files Browse the repository at this point in the history
Use the new ARM64 Ubuntu 24.04 runner.
  • Loading branch information
martincostello committed Jan 17, 2025
1 parent 07eca58 commit 05c9511
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,55 +49,12 @@ jobs:
- os-name: macos
runner: macos-latest
- os-name: linux
runner: ubuntu-latest
runner: ubuntu-24.04-arm

Check failure on line 52 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / lint

label "ubuntu-24.04-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
- os-name: windows
runner: windows-latest

steps:

- name: Setup arm64 support for native AoT
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 bash -c "cat > ${apt_sources} <<EOF
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: ${codename}
Components: main restricted universe
Architectures: amd64
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: ${codename}-security
Components: main restricted universe
Architectures: amd64
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: ${codename}-updates
Components: main restricted universe
Architectures: amd64
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: ${codename}
Components: main restricted multiverse universe
Architectures: arm64
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports/
Suites: ${codename}-updates
Components: main restricted multiverse universe
Architectures: arm64
EOF"
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
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand Down

0 comments on commit 05c9511

Please sign in to comment.