Merge pull request #6872 from zmstone/update-windows-build-instructions

Update windows build instructions
This commit is contained in:
Zaiming (Stone) Shi 2022-01-26 13:33:32 +01:00 committed by GitHub
commit f65cd003c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -86,6 +86,7 @@ jobs:
DIAGNOSTIC: 1 DIAGNOSTIC: 1
run: | run: |
$env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH" $env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
erl -eval "erlang:display(crypto:info_lib())" -s init stop
$version = $( "${{ github.ref }}" -replace "^(.*)/(.*)/" ) $version = $( "${{ github.ref }}" -replace "^(.*)/(.*)/" )
if ($version -match "^v[0-9]+\.[0-9]+(\.[0-9]+)?") { if ($version -match "^v[0-9]+\.[0-9]+(\.[0-9]+)?") {

View File

@ -25,17 +25,17 @@ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build
Depending on your visual studio version and OS, the paths may differ. Depending on your visual studio version and OS, the paths may differ.
The first path is for rebar3 port compiler to find `cl.exe` and `link.exe` The first path is for rebar3 port compiler to find `cl.exe` and `link.exe`
The second path is for Powershell or CMD to setup environment variables. 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 23.2 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 powershell. Erlang commands such as `erl` from CMD.
To validate Erlang installation in CMD or powershell: To validate Erlang installation in CMD :
* Start (or restart) CMD or powershell * Start (or restart) CMD
* Execute `erl` command to enter Erlang shell * Execute `erl` command to enter Erlang shell
@ -63,7 +63,7 @@ Cygwin is what we tested with.
to `Path` list. to `Path` list.
* Validate installation. * Validate installation.
Start (restart) CMD or powershell console and execute `which bash`, it should Start (restart) CMD console and execute `which bash`, it should
print out `/usr/bin/bash` print out `/usr/bin/bash`
### Other tools ### Other tools
@ -88,7 +88,7 @@ scoop install git curl make jq zip unzip
* Clone the repo: `git clone https://github.com/emqx/emqx.git` * Clone the repo: `git clone https://github.com/emqx/emqx.git`
* Start CMD or Powershell * Start CMD
* Execute `vcvarsall.bat x86_amd64` to load environment variables * Execute `vcvarsall.bat x86_amd64` to load environment variables