ci: build enterprise for e tags
This commit is contained in:
parent
80b4313f00
commit
d22769a2de
|
@ -25,6 +25,7 @@ jobs:
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.0-8:1.13.3-24.2.1-1-ubuntu20.04"
|
container: "ghcr.io/emqx/emqx-builder/5.0-8:1.13.3-24.2.1-1-ubuntu20.04"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
BUILD_PROFILES: ${{ steps.get_profiles.outputs.BUILD_PROFILES }}
|
||||||
DEP_QUICER_REF: ${{ steps.deps-refs.outputs.DEP_QUICER_REF }}
|
DEP_QUICER_REF: ${{ steps.deps-refs.outputs.DEP_QUICER_REF }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -40,6 +41,22 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
bash -x scripts/get-dep-refs.sh
|
bash -x scripts/get-dep-refs.sh
|
||||||
make clean-all
|
make clean-all
|
||||||
|
- name: Get profiles to build
|
||||||
|
id: get_profiles
|
||||||
|
run: |
|
||||||
|
tag=${{ github.ref }}
|
||||||
|
case $tag in
|
||||||
|
refs/tags/v*)
|
||||||
|
echo "::set-output name=BUILD_PROFILES::[\"emqx\",\"emqx-edge\"]"
|
||||||
|
;;
|
||||||
|
refs/tags/e*)
|
||||||
|
echo "::set-output name=BUILD_PROFILES::[\"emqx-enterprise\"]"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# this is for testing ?
|
||||||
|
echo "::set-output name=BUILD_PROFILES::[\"emqx-edge\",\"emqx\",\"emqx-enterprise\"]"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
- name: get_all_deps
|
- name: get_all_deps
|
||||||
run: |
|
run: |
|
||||||
make -C source deps-all
|
make -C source deps-all
|
||||||
|
@ -103,9 +120,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
profile: # no EDGE for mac
|
profile: ${{ fromJson(needs.prepare.outputs.BUILD_PROFILES) }}
|
||||||
- emqx
|
|
||||||
- emqx-enterprise
|
|
||||||
otp:
|
otp:
|
||||||
- 24.2.1-1
|
- 24.2.1-1
|
||||||
os:
|
os:
|
||||||
|
@ -195,10 +210,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
profile: ## all editions for linux
|
profile: ${{ fromJson(needs.prepare.outputs.BUILD_PROFILES) }}
|
||||||
- emqx-edge
|
|
||||||
- emqx
|
|
||||||
- emqx-enterprise
|
|
||||||
otp:
|
otp:
|
||||||
- 24.2.1-1 # we test with OTP 23, but only build package on OTP 24 versions
|
- 24.2.1-1 # we test with OTP 23, but only build package on OTP 24 versions
|
||||||
elixir:
|
elixir:
|
||||||
|
@ -333,10 +345,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- alpine3.14
|
- alpine3.14
|
||||||
profile: # all editions for docker
|
profile: ${{ fromJson(needs.prepare.outputs.BUILD_PROFILES) }}
|
||||||
- emqx-edge
|
|
||||||
- emqx
|
|
||||||
- emqx-enterprise
|
|
||||||
# NOTE: for docker, only support latest otp and elixir
|
# NOTE: for docker, only support latest otp and elixir
|
||||||
# versions, not a matrix
|
# versions, not a matrix
|
||||||
otp:
|
otp:
|
||||||
|
@ -474,10 +483,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
profile: # all editions for docker
|
profile: ${{ fromJson(needs.prepare.outputs.BUILD_PROFILES) }}
|
||||||
- emqx-edge
|
|
||||||
- emqx
|
|
||||||
- emqx-enterprise
|
|
||||||
# NOTE: for docker, only support latest otp version, not a matrix
|
# NOTE: for docker, only support latest otp version, not a matrix
|
||||||
otp:
|
otp:
|
||||||
- 24.2.1-1 # update to latest
|
- 24.2.1-1 # update to latest
|
||||||
|
@ -594,10 +600,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
profile:
|
profile: ${{ fromJson(needs.prepare.outputs.BUILD_PROFILES) }}
|
||||||
- emqx-edge
|
|
||||||
- emqx
|
|
||||||
- emqx-enterprise
|
|
||||||
otp:
|
otp:
|
||||||
- 24.2.1-1
|
- 24.2.1-1
|
||||||
include:
|
include:
|
||||||
|
|
Loading…
Reference in New Issue