Skip to content

Commit

Permalink
test setup-erlang windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
reganheath committed May 22, 2020
1 parent b46d0ca commit 769f427
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/wintest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:

strategy:
matrix:
otp_version: [19, 20, 21, 22, 23]
otp_version: [19, 20, 22, 23]
os: [windows-latest]

steps:
- uses: actions/checkout@v2
- name: Install Erlang
run: shelltests/win-install-erl.ps1 ${{ matrix.otp_version }}
- uses: reganheath/setup-erlang@add-windows-support
with:
otp-version: ${{ matrix.otp_version }}
# - name: Install Erlang
# run: shelltests/win-install-erl.ps1 ${{ matrix.otp_version }}
id: install_erlang
- name: Run test
run: shelltests/wintest.ps1 "${{ steps.install_erlang.outputs.erlpath }}"
3 changes: 3 additions & 0 deletions priv/templates/extended_bin_windows_ps
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ function Eval()

# Ping node and error (exit) if not running
function PingOrExit() {
"erl.exe is in $((Get-Command erl).source)"
Eval "io:format(`"~s`", [filename:nativename(code:root_dir())])."
Eval "os:find_executable(epmd)."
$result = (Rpc erlang is_alive)
if ($result -ne "true") {
Write-Error "Node is not running! ($result)"
Expand Down
1 change: 0 additions & 1 deletion shelltests/wintest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ $ErrorActionPreference = "Stop"
# Add erlpath to PATH
"*** Add to PATH $erlpath\bin"
$env:PATH = "$env:PATH;$erlpath\bin"
#$env:PATH = "$env:PATH;$erlpath\erts-$erts_vsn\bin"
""

# CD to script location (shelltests)
Expand Down

0 comments on commit 769f427

Please sign in to comment.