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.

Image of Stellar post

🚀 Stellar Dev Diaries Series: Episode 1 is LIVE!

In the Stellar Dev Diaries, we take a dive deep into the experiences of the Freelii team as they build and launch their product on the Stellar Network.

Read more

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay