Skip to content

Commit

Permalink
ci: Enable minidriver and opensc-notify for mingw builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Logar committed Oct 3, 2023
1 parent 621f6b8 commit f01d18f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ if [ "$RUNNER_OS" == "macOS" ]; then
fi

if [ "$1" == "mingw" -o "$1" == "mingw32" ]; then
mkdir -p src/minidriver/CNG
wget https://raw.githubusercontent.com/open-eid/minidriver/master/cardmod.h -O src/minidriver/CNG/cardmod.h
if [ "$1" == "mingw" ]; then
HOST=x86_64-w64-mingw32
elif [ "$1" == "mingw32" ]; then
HOST=i686-w64-mingw32
fi
unset CC
unset CXX
./configure --host=$HOST --with-completiondir=/tmp --disable-openssl --disable-readline --disable-zlib --disable-notify --prefix=$PWD/win32/opensc || cat config.log;
CFLAGS="-I$PWD/src/minidriver/CNG -Wno-error=unknown-pragmas" \
CPPFLAGS="-DNTDDI_VERSION=0x06010000" \
./configure --host=$HOST --with-completiondir=/tmp --disable-openssl --disable-readline --disable-zlib --enable-minidriver --enable-notify --prefix=$PWD/win32/opensc || cat config.log;
make -j 4 V=1
# no point in running tests on mingw
else
Expand Down

0 comments on commit f01d18f

Please sign in to comment.