Skip to content

Commit fa42131

Browse files
committed
GH Actions: speed up slow jobs by using Linux Arm64
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
1 parent 154bb91 commit fa42131

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/quicktest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
include:
3434
- php: '5.4'
35-
os: 'ubuntu-latest'
35+
os: 'ubuntu-24.04-arm'
3636
custom_ini: false
3737
# Installing on Windows with PHP 5.4 runs into all sorts of problems with Composer.
3838
# See this issue for more context (yes, I've seen this problem before):

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189

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

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

210210
steps:
211211
- name: Prepare git to leave line endings alone

0 commit comments

Comments
 (0)