From b5fc5b04092df625339e0cf384795c550a8d9c1c Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Mon, 30 Dec 2024 09:49:17 +0800 Subject: [PATCH] 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. --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f882b5b21..f23cf2dc0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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] @@ -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: |