Skip to content

Commit 5398b19

Browse files
committed
Move amd64 arch builds to self hosted runners
Our self hosted runners are cheaper and faster so we want to move to them. Unfortunately, we do not have arm based runners so keep those on Github hosted runners.
1 parent 0d0e1eb commit 5398b19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ jobs:
2727
echo "timestamp=$timestamp" >> $GITHUB_OUTPUT
2828
2929
base:
30-
# `unbuntu-22.04-8core` for arch amd64 non-scheduled builds
31-
# `unbuntu-22.04` for arch amd64 scheduled builds
30+
# `debian-12` for amd64 builds
3231
# `unbuntu-22.04-8core-arm` for arch arm64 non-scheduled builds
3332
# `unbuntu-22.04-2core-arm` for arch arm64 scheduled builds
34-
runs-on: ubuntu-22.04${{ ((github.event_name != 'schedule') && '-8core') || (( matrix.arch == 'arm64' && '-2core' ) || '') }}${{ (matrix.arch == 'arm64') && '-arm' || '' }}
33+
runs-on: ${{ (matrix.arch == 'amd64' && 'debian-12') || (github.event_name == 'schedule' && 'ubuntu-22.04-2core-arm') || 'ubuntu-22.04-8core-arm' }}
3534
strategy:
3635
matrix:
3736
arch: [amd64, arm64]
3837
timeout-minutes: ${{ (github.event_name == 'schedule' && 90) || ((matrix.arch == 'arm64' && 45) || 30) }}
3938
needs: timestamp
4039
env:
4140
TIMESTAMP: ${{ needs.timestamp.outputs.timestamp }}
41+
container: discourse/ruby:3.3-bookworm-slim
4242
services:
4343
registry:
4444
image: registry:2

0 commit comments

Comments
 (0)