fix(ci): split elixir package building into own step

Since the job step may run out of execution time, by separating the
Elixir build from the traditional one may prevent timeouts.
This commit is contained in:
Thales Macedo Garitezi 2022-01-11 15:58:54 -03:00
parent 7559b85a52
commit 4db2e6006b
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 18 additions and 0 deletions

View File

@ -239,6 +239,12 @@ jobs:
- 24.1.5-3 # we test with OTP 23, but only build package on OTP 24 versions
elixir:
- 1.13.1
# used to split elixir packages into a separate job, since the
# entire job may take a lot of time, especially on arm64
# emulation
build_elixir:
- with_elixir
- no_elixir
arch:
- amd64
- arm64
@ -336,6 +342,7 @@ jobs:
PROFILE: ${{ matrix.profile }}
ARCH: ${{ matrix.arch }}
SYSTEM: ${{ matrix.os }}
if: ${{ matrix.build_elixir == 'no_elixir' }}
working-directory: source
# FIXME: use tagged version once merged
run: |
@ -357,6 +364,17 @@ jobs:
--system "${SYSTEM}" \
--builder "ghcr.io/emqx/emqx-builder/elixir:${ELIXIR}-${OTP}-${SYSTEM}"
- name: build emqx packages (Elixir)
env:
OTP: ${{ matrix.otp }}
ELIXIR: ${{ matrix.elixir }}
PROFILE: ${{ matrix.profile }}
ARCH: ${{ matrix.arch }}
SYSTEM: ${{ matrix.os }}
working-directory: source
if: ${{ matrix.build_elixir == 'with_elixir' }}
# FIXME: use tagged version once merged
run: |
./scripts/buildx.sh \
--profile "${PROFILE}" \
--pkgtype "elixirpkg" \