|
|
@@ -77,7 +77,12 @@ jobs:
|
|
|
echo "VERSION=$(./pkg-vsn.sh $PROFILE)" >> $GITHUB_OUTPUT
|
|
|
- name: get_all_deps
|
|
|
run: |
|
|
|
- make -C source deps-all
|
|
|
+ pushd source
|
|
|
+ # make sure all previous left-overs are cleaned
|
|
|
+ make clean-all
|
|
|
+ # enterprise is a super-set, should be enough for all profiles
|
|
|
+ make deps-emqx-enterprise
|
|
|
+ popd
|
|
|
zip -ryq source.zip source/* source/.[^.]*
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
with:
|
|
|
@@ -175,6 +180,8 @@ jobs:
|
|
|
linux:
|
|
|
needs: prepare
|
|
|
runs-on: ${{ matrix.build_machine }}
|
|
|
+ # 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 }}"
|
|
|
|
|
|
@@ -249,12 +256,9 @@ jobs:
|
|
|
- name: build emqx packages
|
|
|
working-directory: source
|
|
|
env:
|
|
|
- BUILDER: ${{ matrix.builder }}
|
|
|
ELIXIR: ${{ matrix.elixir }}
|
|
|
- OTP: ${{ matrix.otp }}
|
|
|
PROFILE: ${{ matrix.profile }}
|
|
|
ARCH: ${{ matrix.arch }}
|
|
|
- SYSTEM: ${{ matrix.os }}
|
|
|
run: |
|
|
|
set -eu
|
|
|
git config --global --add safe.directory "/__w/emqx/emqx"
|
|
|
@@ -278,7 +282,7 @@ jobs:
|
|
|
--pkgtype "${PKGTYPE}" \
|
|
|
--arch "${ARCH}" \
|
|
|
--elixir "${IS_ELIXIR}" \
|
|
|
- --builder "ghcr.io/emqx/emqx-builder/${BUILDER}:${ELIXIR}-${OTP}-${SYSTEM}"
|
|
|
+ --builder "builder_to_be_ignored"
|
|
|
done
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
if: success()
|