Skip to content

Commit

Permalink
fixups Enable testing in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Nov 20, 2023
1 parent 8c931ba commit e54b4c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,16 @@ jobs:
with:
path: ~/.cache/rebar3
key: rebar3-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}}

- name: Add msbuild to PATH
uses: microsoft/[email protected]
if: ${{ matrix.os == 'windows-2022' }}
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
if: ${{ matrix.os == 'windows-2022' }}
# - name: Install OpenSSL
# run: powershell.exe .\.github\workflows\Install-OpenSSL.ps1
# if: ${{ matrix.os == 'windows-2022' }}

- run: rebar3 as test get-deps
- run: rebar3 as test compile
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"$CFLAGS -std=c99 -O0 -g -Wall -Wextra -fPIC --coverage"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"$LDLIBS -lcrypto --coverage"},
{"win32", "CFLAGS", "$CFLAGS /O0 /DNDEBUG /Wall"},
{"win32", "CFLAGS", "$CFLAGS ${OPENSSL_INSTALL_DIR}\include /O0 /DNDEBUG /Wall"},
{"win32", "LDLIBS", "$LDLIBS libcrypto.lib"}
]
}
Expand Down

0 comments on commit e54b4c3

Please sign in to comment.