ci: add daily build of emqx-enterprise for debian10 platform
This commit is contained in:
parent
b8d3dcf59a
commit
1e6ba2e748
|
@ -13,8 +13,6 @@ jobs:
|
||||||
linux:
|
linux:
|
||||||
if: github.repository_owner == 'emqx'
|
if: github.repository_owner == 'emqx'
|
||||||
runs-on: aws-${{ matrix.arch }}
|
runs-on: aws-${{ matrix.arch }}
|
||||||
# always run in builder container because the host might have the wrong OTP version etc.
|
|
||||||
# otherwise buildx.sh does not run docker if arch and os matches the target arch and os.
|
|
||||||
container:
|
container:
|
||||||
image: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
|
image: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
|
||||||
|
|
||||||
|
@ -24,11 +22,13 @@ jobs:
|
||||||
profile:
|
profile:
|
||||||
- ['emqx', 'master']
|
- ['emqx', 'master']
|
||||||
- ['emqx-enterprise', 'release-51']
|
- ['emqx-enterprise', 'release-51']
|
||||||
|
- ['emqx-enterprise', 'release-52']
|
||||||
otp:
|
otp:
|
||||||
- 25.3.2-1
|
- 25.3.2-1
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
os:
|
os:
|
||||||
|
- debian10
|
||||||
- ubuntu22.04
|
- ubuntu22.04
|
||||||
- amzn2023
|
- amzn2023
|
||||||
builder:
|
builder:
|
||||||
|
@ -47,25 +47,32 @@ jobs:
|
||||||
ref: ${{ matrix.profile[1] }}
|
ref: ${{ matrix.profile[1] }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: build emqx packages
|
- name: fix workdir
|
||||||
env:
|
|
||||||
ELIXIR: ${{ matrix.elixir }}
|
|
||||||
PROFILE: ${{ matrix.profile[0] }}
|
|
||||||
ARCH: ${{ matrix.arch }}
|
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
PKGTYPES="tgz pkg"
|
# Align path for CMake caches
|
||||||
IS_ELIXIR="no"
|
if [ ! "$PWD" = "/emqx" ]; then
|
||||||
for PKGTYPE in ${PKGTYPES};
|
ln -s $PWD /emqx
|
||||||
do
|
cd /emqx
|
||||||
./scripts/buildx.sh \
|
fi
|
||||||
--profile "${PROFILE}" \
|
echo "pwd is $PWD"
|
||||||
--pkgtype "${PKGTYPE}" \
|
|
||||||
--arch "${ARCH}" \
|
- name: build emqx packages
|
||||||
--elixir "${IS_ELIXIR}" \
|
env:
|
||||||
--builder "force_host"
|
PROFILE: ${{ matrix.profile[0] }}
|
||||||
done
|
ACLOCAL_PATH: "/usr/share/aclocal:/usr/local/share/aclocal"
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
make "${PROFILE}-tgz"
|
||||||
|
make "${PROFILE}-pkg"
|
||||||
|
- name: test emqx packages
|
||||||
|
env:
|
||||||
|
PROFILE: ${{ matrix.profile[0] }}
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
./scripts/pkg-tests.sh "${PROFILE}-tgz"
|
||||||
|
./scripts/pkg-tests.sh "${PROFILE}-pkg"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue