Skip to content

Commit

Permalink
GH Actions: speed up slow jobs by using Linux Arm64
Browse files Browse the repository at this point in the history
GitHub has made Linux arm64 runners generally available and running tasks on these images instead of the traditional images can deliver up to a 40% performance boost.

As the fast majority of end-users won't be using Arm yet, I'm not (yet) switching all Linux builds to Arm runners, but for now, I think it makes sense to try and speed up the build by using these images for the slowest builds (PHP 5.4).

Refs:
* https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/
* https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
  • Loading branch information
jrfnl committed Jan 24, 2025
1 parent 154bb91 commit fa42131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

include:
- php: '5.4'
os: 'ubuntu-latest'
os: 'ubuntu-24.04-arm'
custom_ini: false
# Installing on Windows with PHP 5.4 runs into all sorts of problems with Composer.
# See this issue for more context (yes, I've seen this problem before):
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ jobs:

include:
- php: '5.4'
os: 'ubuntu-latest'
os: 'ubuntu-24.04-arm'
custom_ini: false
# Installing on Windows with PHP 5.4 runs into all sorts of problems with Composer.
# Considering PHP 5.4 is ancient, I deem it acceptable to run coverage on Windows on PHP 5.5.
Expand All @@ -205,7 +205,7 @@ jobs:
custom_ini: true

# yamllint disable-line rule:line-length
name: "Coverage: ${{ matrix.php }} ${{ matrix.custom_ini && ' with custom ini settings' || '' }} (${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Win' }})"
name: "Coverage: ${{ matrix.php }} ${{ matrix.custom_ini && ' with custom ini settings' || '' }} (${{ matrix.os == 'windows-latest' && 'Win' || 'Linux' }})"

steps:
- name: Prepare git to leave line endings alone
Expand Down

0 comments on commit fa42131

Please sign in to comment.