ci: fix builder for elixir
This commit is contained in:
parent
18246442aa
commit
7ec7ab785d
|
@ -180,21 +180,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
profile:
|
profile:
|
||||||
- ${{ needs.prepare.outputs.BUILD_PROFILE }}
|
- ${{ needs.prepare.outputs.BUILD_PROFILE }}
|
||||||
builder:
|
|
||||||
- 5.0-26
|
|
||||||
otp:
|
otp:
|
||||||
- 24.3.4.2-1
|
- 24.3.4.2-1
|
||||||
elixir:
|
|
||||||
- 1.13.4
|
|
||||||
# used to split elixir packages into a separate job, since the
|
|
||||||
# entire job may take a lot of time, especially on arm64
|
|
||||||
# emulation.
|
|
||||||
# we only want to build ubuntu and centos with elixir for the
|
|
||||||
# time being, so it's easier to just include those with
|
|
||||||
# `with_elixir` set.
|
|
||||||
build_elixir:
|
|
||||||
# - with_elixir
|
|
||||||
- no_elixir
|
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
|
@ -216,19 +203,17 @@ jobs:
|
||||||
build_machine: aws-arm64
|
build_machine: aws-arm64
|
||||||
include:
|
include:
|
||||||
- profile: emqx
|
- profile: emqx
|
||||||
otp: 24.3.4.2-1
|
otp: 25.1.2-2
|
||||||
elixir: 1.13.4
|
|
||||||
build_elixir: with_elixir
|
|
||||||
arch: amd64
|
arch: amd64
|
||||||
os: ubuntu20.04
|
os: ubuntu20.04
|
||||||
build_machine: ubuntu-20.04
|
build_machine: ubuntu-20.04
|
||||||
|
is_elixir: yes
|
||||||
- profile: emqx
|
- profile: emqx
|
||||||
otp: 24.3.4.2-1
|
otp: 25.1.2-2
|
||||||
elixir: 1.13.4
|
|
||||||
build_elixir: with_elixir
|
|
||||||
arch: amd64
|
arch: amd64
|
||||||
os: amzn2
|
os: amzn2
|
||||||
build_machine: ubuntu-20.04
|
build_machine: ubuntu-20.04
|
||||||
|
is_elixir: yes
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -246,9 +231,9 @@ jobs:
|
||||||
- name: build emqx packages
|
- name: build emqx packages
|
||||||
working-directory: source
|
working-directory: source
|
||||||
env:
|
env:
|
||||||
BUILDER: ${{ matrix.builder }}
|
BUILDER: '5.0-26'
|
||||||
|
ELIXIR: '1.13.4'
|
||||||
OTP: ${{ matrix.otp }}
|
OTP: ${{ matrix.otp }}
|
||||||
ELIXIR: ${{ matrix.elixir }}
|
|
||||||
PROFILE: ${{ matrix.profile }}
|
PROFILE: ${{ matrix.profile }}
|
||||||
ARCH: ${{ matrix.arch }}
|
ARCH: ${{ matrix.arch }}
|
||||||
SYSTEM: ${{ matrix.os }}
|
SYSTEM: ${{ matrix.os }}
|
||||||
|
@ -262,11 +247,11 @@ jobs:
|
||||||
fi
|
fi
|
||||||
echo "pwd is $PWD"
|
echo "pwd is $PWD"
|
||||||
PkgTypes="tgz pkg"
|
PkgTypes="tgz pkg"
|
||||||
IsElixir="no"
|
IS_ELIXIR="no"
|
||||||
if [ ${{ matrix.build_elixir }} = "with_elixir" ]; then
|
if [ ${{ matrix.is_elixir }} == 'yes' ]; then
|
||||||
PkgTypes="tgz"
|
PkgTypes="tgz"
|
||||||
# set Elixir build flag
|
# set Elixir build flag
|
||||||
IsElixir="yes"
|
IS_ELIXIR="yes"
|
||||||
fi
|
fi
|
||||||
for PKGTYPE in ${PkgTypes};
|
for PKGTYPE in ${PkgTypes};
|
||||||
do
|
do
|
||||||
|
@ -274,7 +259,7 @@ jobs:
|
||||||
--profile "${PROFILE}" \
|
--profile "${PROFILE}" \
|
||||||
--pkgtype "${PKGTYPE}" \
|
--pkgtype "${PKGTYPE}" \
|
||||||
--arch "${ARCH}" \
|
--arch "${ARCH}" \
|
||||||
--elixir "${IsElixir}" \
|
--elixir "${IS_ELIXIR}" \
|
||||||
--builder "ghcr.io/emqx/emqx-builder/${BUILDER}:${ELIXIR}-${OTP}-${SYSTEM}"
|
--builder "ghcr.io/emqx/emqx-builder/${BUILDER}:${ELIXIR}-${OTP}-${SYSTEM}"
|
||||||
done
|
done
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in New Issue