Merge pull request #7084 from zmstone/otp-24-for-windows
Otp 24 for windows
This commit is contained in:
commit
50b2efe2b0
|
@ -61,19 +61,16 @@ jobs:
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
|
|
||||||
needs: prepare
|
needs: prepare
|
||||||
if: endsWith(github.repository, 'emqx')
|
if: endsWith(github.repository, 'emqx')
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
|
profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
|
||||||
otp:
|
otp:
|
||||||
- 23.2
|
- 24.2.1
|
||||||
exclude:
|
exclude:
|
||||||
- profile: emqx-edge
|
- profile: emqx-edge
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
@ -82,9 +79,7 @@ jobs:
|
||||||
- name: unzip source code
|
- name: unzip source code
|
||||||
run: Expand-Archive -Path source.zip -DestinationPath ./
|
run: Expand-Archive -Path source.zip -DestinationPath ./
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
- uses: gleam-lang/setup-erlang@v1.1.2
|
- uses: erlef/setup-beam@v1
|
||||||
id: install_erlang
|
|
||||||
## gleam-lang/setup-erlang does not yet support the installation of otp24 on windows
|
|
||||||
with:
|
with:
|
||||||
otp-version: ${{ matrix.otp }}
|
otp-version: ${{ matrix.otp }}
|
||||||
- name: build
|
- name: build
|
||||||
|
@ -94,19 +89,7 @@ jobs:
|
||||||
PROFILE: emqx
|
PROFILE: emqx
|
||||||
working-directory: source
|
working-directory: source
|
||||||
run: |
|
run: |
|
||||||
$env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
|
|
||||||
erl -eval "erlang:display(crypto:info_lib())" -s init stop
|
erl -eval "erlang:display(crypto:info_lib())" -s init stop
|
||||||
## We do not build/release bcrypt for windows package
|
|
||||||
Remove-Item -Recurse -Force -Path _build/default/lib/bcrypt/
|
|
||||||
if (Test-Path rebar.lock) {
|
|
||||||
Remove-Item -Force -Path rebar.lock
|
|
||||||
}
|
|
||||||
make ensure-rebar3
|
|
||||||
copy rebar3 "${{ steps.install_erlang.outputs.erlpath }}\bin"
|
|
||||||
ls "${{ steps.install_erlang.outputs.erlpath }}\bin"
|
|
||||||
head -2 rebar3
|
|
||||||
which rebar3
|
|
||||||
rebar3 --help
|
|
||||||
make ${{ matrix.profile }}-zip
|
make ${{ matrix.profile }}-zip
|
||||||
- name: run emqx
|
- name: run emqx
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
|
@ -114,9 +97,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start
|
||||||
Start-Sleep -s 5
|
Start-Sleep -s 5
|
||||||
|
echo "EMQX started"
|
||||||
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop
|
||||||
|
echo "EMQX stopped"
|
||||||
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install
|
||||||
|
echo "EQMX installed"
|
||||||
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
|
||||||
|
echo "EQMX uninstaled"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -60,8 +60,43 @@ jobs:
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
path: _packages/**/*.zip
|
path: _packages/**/*.zip
|
||||||
|
|
||||||
mac:
|
windows:
|
||||||
|
runs-on: windows-2019
|
||||||
|
if: endsWith(github.repository, 'emqx')
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
profile:
|
||||||
|
- emqx
|
||||||
|
otp:
|
||||||
|
- 24.2.1
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
- uses: erlef/setup-beam@v1
|
||||||
|
with:
|
||||||
|
otp-version: ${{ matrix.otp }}
|
||||||
|
- name: build
|
||||||
|
env:
|
||||||
|
PYTHON: python
|
||||||
|
DIAGNOSTIC: 1
|
||||||
|
run: |
|
||||||
|
erl -eval "erlang:display(crypto:info_lib())" -s init stop
|
||||||
|
make ${{ matrix.profile }}-zip
|
||||||
|
- name: run emqx
|
||||||
|
timeout-minutes: 1
|
||||||
|
run: |
|
||||||
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start
|
||||||
|
Start-Sleep -s 5
|
||||||
|
echo "EMQX started"
|
||||||
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop
|
||||||
|
echo "EMQX stopped"
|
||||||
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install
|
||||||
|
echo "EQMX installed"
|
||||||
|
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
|
||||||
|
echo "EQMX uninstaled"
|
||||||
|
|
||||||
|
mac:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# EMQ X 4.4 Changes
|
# EMQ X 4.4 Changes
|
||||||
|
|
||||||
|
## v4.4.2
|
||||||
|
|
||||||
|
### Minor changes
|
||||||
|
|
||||||
|
* Windows package is built on Erlang/OTP 24
|
||||||
|
|
||||||
## v4.4.1
|
## v4.4.1
|
||||||
|
|
||||||
This patch release is only to fix windows build which failed on v4.4.0.
|
This patch release is only to fix windows build which failed on v4.4.0.
|
||||||
|
|
|
@ -29,7 +29,7 @@ The second path is for CMD to setup environment variables.
|
||||||
|
|
||||||
### Erlang/OTP
|
### Erlang/OTP
|
||||||
|
|
||||||
Install Erlang/OTP 23.2 from https://www.erlang.org/downloads
|
Install Erlang/OTP 24.2.1 from https://www.erlang.org/downloads
|
||||||
You may need to edit the `Path` environment variable to allow running
|
You may need to edit the `Path` environment variable to allow running
|
||||||
Erlang commands such as `erl` from CMD.
|
Erlang commands such as `erl` from CMD.
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ e.g.
|
||||||
|
|
||||||
```
|
```
|
||||||
PS C:\Users\zmsto> erl
|
PS C:\Users\zmsto> erl
|
||||||
Eshell V11.1.4 (abort with ^G)
|
Eshell V12.2.1 (abort with ^G)
|
||||||
1> halt().
|
1> halt().
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{application, emqx_dashboard,
|
{application, emqx_dashboard,
|
||||||
[{description, "EMQ X Web Dashboard"},
|
[{description, "EMQ X Web Dashboard"},
|
||||||
{vsn, "4.4.2"}, % strict semver, bump manually!
|
{vsn, "4.4.3"}, % strict semver, bump manually!
|
||||||
{modules, []},
|
{modules, []},
|
||||||
{registered, [emqx_dashboard_sup]},
|
{registered, [emqx_dashboard_sup]},
|
||||||
{applications, [kernel,stdlib,mnesia,minirest]},
|
{applications, [kernel,stdlib,mnesia,minirest]},
|
||||||
|
|
Loading…
Reference in New Issue