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

Deploy with ease. Manage efficiently. Scale faster.

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)

Image of DataStax

Langflow: Simplify AI Agent Building

Langflow is the easiest way to build and deploy AI-powered agents. Try it out for yourself and see why.

Get started for free

👋 Kindness is contagious

Please consider leaving a ❤️ or a kind comment on this post if it was useful to you!

Join our growing community of developers and share your journey with like-minded individuals. Your insights could inspire oth...