Skip to content

Commit

Permalink
Move amd64 arch builds to self hosted runners
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tgxworld committed Dec 31, 2024
1 parent 0d0e1eb commit b5fc5b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
echo "timestamp=$timestamp" >> $GITHUB_OUTPUT
base:
# `unbuntu-22.04-8core` for arch amd64 non-scheduled builds
# `unbuntu-22.04` for arch amd64 scheduled builds
# `debian-12` for amd64 builds
# `unbuntu-22.04-8core-arm` for arch arm64 non-scheduled builds
# `unbuntu-22.04-2core-arm` for arch arm64 scheduled builds
runs-on: ubuntu-22.04${{ ((github.event_name != 'schedule') && '-8core') || (( matrix.arch == 'arm64' && '-2core' ) || '') }}${{ (matrix.arch == 'arm64') && '-arm' || '' }}
runs-on: ${{ (matrix.arch == 'amd64' && 'debian-12') || (github.event_name == 'schedule' && 'ubuntu-22.04-2core-arm') || 'ubuntu-22.04-8core-arm' }}
strategy:
matrix:
arch: [amd64, arm64]
Expand All @@ -49,6 +48,10 @@ jobs:
with:
fetch-depth: 1

- name: Install Ruby
run: |
apt-get update && apt-get install -y ruby
- name: build deps image
working-directory: image
run: |
Expand Down

0 comments on commit b5fc5b0

Please sign in to comment.