From acc5d6d8613dd7e1f3cf1edf8410893fee6b6c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 17 Jan 2025 10:45:08 +0100 Subject: [PATCH] ci: use the new ARM runners for ARM builds --- .github/workflows/docker.yaml | 8 ++++---- .github/workflows/static.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 9835f5b75..b42dd1d5c 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -29,7 +29,7 @@ env: IMAGE_NAME: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/')) && 'dunglas/frankenphp' || 'dunglas/frankenphp-dev' }} jobs: prepare: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 outputs: # Push if it's a scheduled job, a tag, or if we're committing to the main branch push: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')) && true || false }} @@ -100,7 +100,7 @@ jobs: VERSION: ${{ (github.ref_type == 'tag' && github.ref_name) || steps.check.outputs.ref || 'dev' }} PHP_VERSION: ${{ steps.check.outputs.php_version }} build: - runs-on: ubuntu-latest + runs-on: ${{ startsWith(matrix.platform, 'linux/arm') && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }} needs: - prepare if: ${{ !fromJson(needs.prepare.outputs.skip) }} @@ -111,7 +111,7 @@ jobs: platform: ${{ fromJson(needs.prepare.outputs.platforms) }} include: - race: "" - qemu: true + qemu: false - platform: linux/amd64 qemu: false race: "-race" # The Go race detector is only supported on amd64 @@ -211,7 +211,7 @@ jobs: METADATA: ${{ steps.build.outputs.metadata }} # Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/ push: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - prepare - build diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml index 0173a5590..67e77edb8 100644 --- a/.github/workflows/static.yaml +++ b/.github/workflows/static.yaml @@ -31,7 +31,7 @@ env: IMAGE_NAME: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/')) && 'dunglas/frankenphp' || 'dunglas/frankenphp-dev' }} jobs: prepare: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 outputs: push: ${{ toJson((steps.check.outputs.ref || (github.event_name == 'workflow_dispatch' && inputs.version) || startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request')) && true || false) }} platforms: ${{ steps.matrix.outputs.platforms }} @@ -74,7 +74,7 @@ jobs: debug: [false] mimalloc: [false] include: - - qemu: true + - qemu: false - platform: linux/amd64 qemu: false - platform: linux/amd64 @@ -84,7 +84,7 @@ jobs: qemu: false mimalloc: true name: Build ${{ matrix.platform }} static binary${{ matrix.debug && ' (debug)' || '' }}${{ matrix.mimalloc && ' (mimalloc)' || '' }} - runs-on: ubuntu-latest + runs-on: ${{ startsWith(matrix.platform, 'linux/arm') && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }} needs: [prepare] steps: - name: Prepare @@ -187,7 +187,7 @@ jobs: # Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/ push: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - prepare - build-linux