Test app build on Windows CI (#1130)

Co-authored-by: Wojtek Mach <wojtekmach@users.noreply.github.com>
This commit is contained in:
Jonatan Kłosko 2022-05-27 15:47:47 +02:00 committed by GitHub
parent fc82b55dab
commit cf0ff5a5a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -62,11 +62,12 @@ jobs:
- name: Install Erlang & Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '24.0'
elixir-version: '1.13.0'
version-type: strict
otp-version: '24.2'
elixir-version: '1.13.2'
- name: Start epmd
run: cmd /c "START /b epmd"
working-directory: ${{ env.INSTALL_DIR_FOR_OTP }}/erts-12.0.4/bin
working-directory: ${{ env.INSTALL_DIR_FOR_OTP }}/erts-12.2/bin
# Add tar that supports symlinks, see https://github.com/actions/virtual-environments/issues/4679
- name: Add tar.exe
run: |
@ -88,3 +89,5 @@ jobs:
run: mix compile --warnings-as-errors
- name: Run tests
run: mix test
- name: Build the app
run: bash .github/scripts/app/build_windows.sh

View file

@ -237,7 +237,7 @@ defmodule AppBuilder.Windows do
defp ensure_vcredistx64 do
url = "https://aka.ms/vs/17/release/vc_redist.x64.exe"
sha256 = "37ed59a66699c0e5a7ebeef7352d7c1c2ed5ede7212950a1b0a8ee289af4a95b"
sha256 = "426a34c6f10ea8f7da58a8c976b586ad84dd4bab42a0cfdbe941f1763b7755e5"
AppBuilder.Utils.ensure_executable(url, sha256)
end