Skip to content

Commit

Permalink
parallelize CI build even further
Browse files Browse the repository at this point in the history
passenger-full takes 3.75 hours without this
  • Loading branch information
CamJN committed Feb 23, 2024
1 parent 5a85427 commit 83af4b4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ defaults:
jobs:
build:
name: "build-${{ matrix.img }}"
runs-on: ubuntu-latest
runs-on: [ ubuntu, linux, ${{ matrix.arch }} ]
strategy:
fail-fast: true
matrix:
arch:
- arm64
- amd64
img:
- full
- customizable
Expand Down Expand Up @@ -44,6 +47,9 @@ jobs:
run: 'docker run --privileged --rm tonistiigi/binfmt --install all'
- name: "Run make build_${{ matrix.img }}"
run: "make build_${{ matrix.img }}"
env:
BUILD_AMD64: ${{ fromJSON('[1, 0]')[matrix.arch == 'amd64'] }}
BUILD_ARM64: ${{ fromJSON('[1, 0]')[matrix.arch == 'arm64'] }}
- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@v3
Expand All @@ -55,3 +61,6 @@ jobs:
- name: Push to github container registry
if: ${{ success() && steps.login.conclusion != 'skipped' }}
run: "make release_${{ matrix.img }}"
env:
BUILD_AMD64: ${{ fromJSON('[1, 0]')[matrix.arch == 'amd64'] }}
BUILD_ARM64: ${{ fromJSON('[1, 0]')[matrix.arch == 'arm64'] }}

0 comments on commit 83af4b4

Please sign in to comment.