From 1e6ba2e7486f98324bf35c810a2c0c5f851e52e7 Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Mon, 14 Aug 2023 11:39:55 +0200 Subject: [PATCH] ci: add daily build of emqx-enterprise for debian10 platform --- .github/workflows/build_packages_cron.yaml | 43 +++++++++++++--------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build_packages_cron.yaml b/.github/workflows/build_packages_cron.yaml index b245078da..431c4f5c4 100644 --- a/.github/workflows/build_packages_cron.yaml +++ b/.github/workflows/build_packages_cron.yaml @@ -13,8 +13,6 @@ jobs: linux: if: github.repository_owner == 'emqx' 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: image: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}" @@ -24,11 +22,13 @@ jobs: profile: - ['emqx', 'master'] - ['emqx-enterprise', 'release-51'] + - ['emqx-enterprise', 'release-52'] otp: - 25.3.2-1 arch: - amd64 os: + - debian10 - ubuntu22.04 - amzn2023 builder: @@ -47,25 +47,32 @@ jobs: ref: ${{ matrix.profile[1] }} fetch-depth: 0 - - name: build emqx packages - env: - ELIXIR: ${{ matrix.elixir }} - PROFILE: ${{ matrix.profile[0] }} - ARCH: ${{ matrix.arch }} + - name: fix workdir run: | set -eu git config --global --add safe.directory "$GITHUB_WORKSPACE" - PKGTYPES="tgz pkg" - IS_ELIXIR="no" - for PKGTYPE in ${PKGTYPES}; - do - ./scripts/buildx.sh \ - --profile "${PROFILE}" \ - --pkgtype "${PKGTYPE}" \ - --arch "${ARCH}" \ - --elixir "${IS_ELIXIR}" \ - --builder "force_host" - done + # Align path for CMake caches + if [ ! "$PWD" = "/emqx" ]; then + ln -s $PWD /emqx + cd /emqx + fi + echo "pwd is $PWD" + + - name: build emqx packages + env: + PROFILE: ${{ matrix.profile[0] }} + 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 if: success() with: