Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Ubuntu arm64 runners with sccache variant #280

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

andrurogerz
Copy link
Contributor

Purpose

Enable the sccache variant of ccache-action to run on GitHub Ubuntu arm64 runners.

Background

GitHub now supports a public preview of Ubuntu on arm64 runners, announced last week. The new runners can be used by anyone on any public repo.

The current implementation of cccache-action unconditionally downloads the Linux x86_64 sccache package when using the sccache variant. This package is incompatible with the arm runners.

NOTE: The ccache variant already works correctly on the arm runners because it installs ccache via the system's package manager.

Validation

Updated test workflow to run tests on ubuntu-24.04-arm and verify they pass here.

@hendrikmuhs
Copy link
Owner

Thank you!

@hendrikmuhs hendrikmuhs merged commit 433beb5 into hendrikmuhs:main Jan 22, 2025
53 checks passed
andrurogerz added a commit to compnerd/ds2 that referenced this pull request Jan 23, 2025
## Purpose
Increase ds2 test coverage in CI by running the same set of lldb tests
we run on Linux x86_64 on the new GitHub Linux arm64 runners.

## Overview
* Rename and split the `build-linux-lldb` job to run on both
`ubuntu-latest` and `ubuntu-24.04-arm` servers, requiring a few
adjustments:
* Adding a workaround for `gha-setup-ninja` on the arm runners to
explicitly specify platform and version
  * Setting `LLVM_TARGETS_TO_BUILD="host"` instead of `X86`
* Updating to a newer revision of `hendrikmuhs/ccache-action` that
contains [this
PR](hendrikmuhs/ccache-action#280) that fixes
sccache support on the arm runners
* Split the `test-linux` job to run on both `ubuntu-latest` and
`ubuntu-24.04-arm` servers, also requiring a few adjustments:
  * Defining new test sets in the matrix for aarch64
* Excluding install of the `gcc-multilib` package except when testing
i686 since the package is not available on the arm runner
* Add new test exclusion files for the tests that fail on Linux aarch64

## Background

## Validation
A number of successful CI runs on the `andrurogerz/ds2` fork:
https://github.com/andrurogerz/ds2/actions/runs/12918614369
https://github.com/andrurogerz/ds2/actions/runs/12918977240
https://github.com/andrurogerz/ds2/actions/runs/12918978353
https://github.com/andrurogerz/ds2/actions/runs/12918979141
https://github.com/andrurogerz/ds2/actions/runs/12918979966
https://github.com/andrurogerz/ds2/actions/runs/12919474811
https://github.com/andrurogerz/ds2/actions/runs/12919522262
@getchoo getchoo mentioned this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants