From ce9d4e9da9e8f2804650917b5ddbc8da6b53e503 Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Mon, 20 Nov 2023 14:26:28 +0100 Subject: [PATCH] fixups Enable testing in windows --- .github/workflows/ci.yml | 3 +++ rebar.config | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c61a50..a78f29f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,9 @@ jobs: - 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"} ] }