|
|
@@ -133,75 +133,26 @@ jobs:
|
|
|
- emqx-enterprise
|
|
|
otp:
|
|
|
- 24.2.1-1
|
|
|
- macos:
|
|
|
+ os:
|
|
|
- macos-11
|
|
|
|
|
|
- runs-on: ${{ matrix.macos }}
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: prepare
|
|
|
run: |
|
|
|
- brew update
|
|
|
- brew install curl zip unzip kerl coreutils openssl@1.1
|
|
|
- echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH
|
|
|
- echo "/usr/local/bin" >> $GITHUB_PATH
|
|
|
echo "EMQX_NAME=${{ matrix.profile }}" >> $GITHUB_ENV
|
|
|
echo "BUILD_WITH_QUIC=1" >> $GITHUB_ENV
|
|
|
- - uses: actions/cache@v2
|
|
|
- id: cache
|
|
|
+ - uses: ./.github/actions/package-macos
|
|
|
with:
|
|
|
- path: ~/.kerl/${{ matrix.otp }}
|
|
|
- key: otp-install-${{ matrix.otp }}-${{ matrix.macos }}-static-ssl-disable-hipe-disable-jit
|
|
|
- - name: build erlang
|
|
|
- if: steps.cache.outputs.cache-hit != 'true'
|
|
|
- timeout-minutes: 60
|
|
|
- env:
|
|
|
- KERL_BUILD_BACKEND: git
|
|
|
- OTP_GITHUB_URL: https://github.com/emqx/otp
|
|
|
- KERL_CONFIGURE_OPTIONS: --disable-dynamic-ssl-lib --with-ssl=/usr/local/opt/openssl@1.1 --disable-hipe --disable-jit
|
|
|
- run: |
|
|
|
- kerl update releases
|
|
|
- kerl build ${{ matrix.otp }}
|
|
|
- kerl install ${{ matrix.otp }} $HOME/.kerl/${{ matrix.otp }}
|
|
|
- - name: build ${{ matrix.profile }}
|
|
|
- env:
|
|
|
- AUTO_INSTALL_BUILD_DEPS: 1
|
|
|
- APPLE_SIGN_BINARIES: 1
|
|
|
- APPLE_ID: developers@emqx.io
|
|
|
- APPLE_TEAM_ID: 26N6HYJLZA
|
|
|
- APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
|
|
- APPLE_DEVELOPER_IDENTITY: ${{ secrets.APPLE_DEVELOPER_IDENTITY }}
|
|
|
- APPLE_DEVELOPER_ID_BUNDLE: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE }}
|
|
|
- APPLE_DEVELOPER_ID_BUNDLE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }}
|
|
|
- run: |
|
|
|
- . $HOME/.kerl/${{ matrix.otp }}/activate
|
|
|
- make ensure-rebar3
|
|
|
- sudo cp rebar3 /usr/local/bin/rebar3
|
|
|
- make ${{ matrix.profile }}-tgz
|
|
|
- - name: test
|
|
|
- run: |
|
|
|
- pkg_name=$(find _packages/${{ matrix.profile }} -mindepth 1 -maxdepth 1 -iname \*.zip)
|
|
|
- mkdir emqx
|
|
|
- unzip -d emqx $pkg_name > /dev/null
|
|
|
- # gsed -i '/emqx_telemetry/d' ./emqx/data/loaded_plugins
|
|
|
- ./emqx/bin/emqx start || cat emqx/log/erlang.log.1
|
|
|
- ready='no'
|
|
|
- for i in {1..30}; do
|
|
|
- if curl -fs 127.0.0.1:18083/status > /dev/null; then
|
|
|
- ready='yes'
|
|
|
- break
|
|
|
- fi
|
|
|
- sleep 1
|
|
|
- done
|
|
|
- if [ "$ready" != "yes" ]; then
|
|
|
- echo "Timed out waiting for emqx to be ready"
|
|
|
- cat emqx/log/erlang.log.1
|
|
|
- exit 1
|
|
|
- fi
|
|
|
- ./emqx/bin/emqx_ctl status
|
|
|
- ./emqx/bin/emqx stop
|
|
|
- rm -rf emqx
|
|
|
+ profile: ${{ matrix.profile }}
|
|
|
+ otp: ${{ matrix.otp }}
|
|
|
+ os: ${{ matrix.os }}
|
|
|
+ apple_id_password: ${{ secrets.APPLE_ID_PASSWORD }}
|
|
|
+ apple_developer_identity: ${{ secrets.APPLE_DEVELOPER_IDENTITY }}
|
|
|
+ apple_developer_id_bundle: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE }}
|
|
|
+ apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }}
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
with:
|
|
|
name: macos
|