DEV Community

Cover image for Using ARM-based GitHub Actions Runners for Workflows
Pradumna Saraf
Pradumna Saraf

Posted on • Edited on

7 3 3 3 2

Using ARM-based GitHub Actions Runners for Workflows

As we have observed a significant transition toward ARM-based CPUs, such as Apple’s M series and Snapdragon's X, it's essential to build, test, and deploy the product and software in a multi-architecture environment to replicate the exact behaviour experienced by an end user.

GitHub recently announced that Linux ARM-based (arm64) GitHub Actions are now available as hosted runners for free in public repositories. You can read the official announcement here. Previously, developers had to rely on virtualization for Actions runs, which was cumbersome. To use it, we have to set the value for runs-on: as ubuntu-24.04-arm or ubuntu-22.04-arm based on which version of Ubuntu we are going to use based on our needs.

Let's see in Action

We will create a basic workflow to print "Hello World". First, create a GitHub repo and make sure you are at the root. Then create a dir name .github inside that, create a dir called workflows, and inside that create a YAML file with any name, we will name it hello.yaml. The complete file path will look like this .github/workflows/hello.yaml. Now paste the below configuration.

name: Hello World
on:
  push:
    branches:
      - main

jobs:
  hello:
    runs-on: ubuntu-24.04-arm

    steps:
      - name: Print Hello World
        run: 'echo "Hello World"'
Enter fullscreen mode Exit fullscreen mode

Now, let's commit the changes and head to the Actions tab to check the progress.

github actions tab

As we can see, our action ran successfully without any issues. For more real-world workflows we can switch the runner label and it will use arm base runners.

On a personal note, I find ARM-based runners much faster, complementing their nature. It may vary depending on the task and the computation power it needs. That's come to the end of this blog. As usual, glad you made it to the end—thank you so much for your support. I regularly share tips on Twitter. You can connect with me there.

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

ITRS image

See What Users Experience in The Browser — Anywhere, Anytime

Simulate logins, checkouts, and payments on SaaS, APIs, and internal apps. Catch issues early, baseline web performance, and stay ahead of incidents. Easily record user journeys right from your browser.

Start Free Trial

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️