Merge pull request #9072 from emqx/build-fix-profile-detection-in-packages
build: fix profile detection when building packages
This commit is contained in:
commit
a64c0b458f
|
@ -1,8 +1,5 @@
|
||||||
name: 'Create MacOS package'
|
name: 'Create MacOS package'
|
||||||
inputs:
|
inputs:
|
||||||
profile: # emqx, emqx-enterprise
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
otp: # 24.2.1-1, 23.3.4.9-3
|
otp: # 24.2.1-1, 23.3.4.9-3
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
@ -49,7 +46,7 @@ runs:
|
||||||
kerl update releases
|
kerl update releases
|
||||||
kerl build ${{ inputs.otp }}
|
kerl build ${{ inputs.otp }}
|
||||||
kerl install ${{ inputs.otp }} $HOME/.kerl/${{ inputs.otp }}
|
kerl install ${{ inputs.otp }} $HOME/.kerl/${{ inputs.otp }}
|
||||||
- name: build ${{ inputs.profile }}
|
- name: build
|
||||||
env:
|
env:
|
||||||
AUTO_INSTALL_BUILD_DEPS: 1
|
AUTO_INSTALL_BUILD_DEPS: 1
|
||||||
APPLE_SIGN_BINARIES: 1
|
APPLE_SIGN_BINARIES: 1
|
||||||
|
@ -64,12 +61,12 @@ runs:
|
||||||
. $HOME/.kerl/${{ inputs.otp }}/activate
|
. $HOME/.kerl/${{ inputs.otp }}/activate
|
||||||
make ensure-rebar3
|
make ensure-rebar3
|
||||||
sudo cp rebar3 /usr/local/bin/rebar3
|
sudo cp rebar3 /usr/local/bin/rebar3
|
||||||
make ${{ inputs.profile }}-zip
|
make ${EMQX_NAME}-zip
|
||||||
- name: test ${{ inputs.profile }}
|
- name: test
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pkg_name=$(basename _packages/${{ inputs.profile }}/${{ inputs.profile }}-*.zip)
|
pkg_name=$(basename _packages/${EMQX_NAME}/${EMQX_NAME}-*.zip)
|
||||||
unzip -q _packages/${{ inputs.profile }}/$pkg_name
|
unzip -q _packages/${EMQX_NAME}/$pkg_name
|
||||||
gsed -i '/emqx_telemetry/d' ./emqx/data/loaded_plugins
|
gsed -i '/emqx_telemetry/d' ./emqx/data/loaded_plugins
|
||||||
./emqx/bin/emqx start || cat emqx/log/erlang.log.1
|
./emqx/bin/emqx start || cat emqx/log/erlang.log.1
|
||||||
ready='no'
|
ready='no'
|
||||||
|
|
|
@ -120,11 +120,8 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
|
|
||||||
otp:
|
otp:
|
||||||
- 23.3.4.9-3
|
- 23.3.4.9-3
|
||||||
exclude:
|
|
||||||
- profile: emqx-edge
|
|
||||||
os:
|
os:
|
||||||
- macos-11
|
- macos-11
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
@ -139,9 +136,12 @@ jobs:
|
||||||
ln -s . source
|
ln -s . source
|
||||||
unzip -q source.zip
|
unzip -q source.zip
|
||||||
rm source source.zip
|
rm source source.zip
|
||||||
|
- id: detect-profiles
|
||||||
|
uses: ./.github/actions/detect-profiles
|
||||||
|
with:
|
||||||
|
ci_git_token: ${{ secrets.CI_GIT_TOKEN }}
|
||||||
- uses: ./.github/actions/package-macos
|
- uses: ./.github/actions/package-macos
|
||||||
with:
|
with:
|
||||||
profile: ${{ matrix.profile }}
|
|
||||||
otp: ${{ matrix.otp }}
|
otp: ${{ matrix.otp }}
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
apple_id_password: ${{ secrets.APPLE_ID_PASSWORD }}
|
apple_id_password: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||||
|
@ -150,8 +150,8 @@ jobs:
|
||||||
apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }}
|
apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }}
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.profile }}-${{ matrix.otp }}
|
name: ${EMQX_NAME}-${{ matrix.otp }}
|
||||||
path: _packages/${{ matrix.profile }}/.
|
path: _packages/${EMQX_NAME}/.
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
|
@ -65,8 +65,6 @@ jobs:
|
||||||
mac:
|
mac:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
profile:
|
|
||||||
- emqx
|
|
||||||
otp:
|
otp:
|
||||||
- 23.3.4.9-3
|
- 23.3.4.9-3
|
||||||
os:
|
os:
|
||||||
|
@ -79,7 +77,6 @@ jobs:
|
||||||
ci_git_token: ${{ secrets.CI_GIT_TOKEN }}
|
ci_git_token: ${{ secrets.CI_GIT_TOKEN }}
|
||||||
- uses: ./.github/actions/package-macos
|
- uses: ./.github/actions/package-macos
|
||||||
with:
|
with:
|
||||||
profile: ${{ matrix.profile }}
|
|
||||||
otp: ${{ matrix.otp }}
|
otp: ${{ matrix.otp }}
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
apple_id_password: ${{ secrets.APPLE_ID_PASSWORD }}
|
apple_id_password: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||||
|
|
Loading…
Reference in New Issue