diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c61a50..470521b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/setup-msbuild@v1.1 + if: ${{ matrix.os == 'windows-2022' }} - name: Enable Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1.12.1 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 diff --git a/rebar.config b/rebar.config index 563a331..d3cfc42 100644 --- a/rebar.config +++ b/rebar.config @@ -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"} ] }