From f1682c3ced5aca6cb305b6cfbedd48af420caf93 Mon Sep 17 00:00:00 2001 From: YX Hao Date: Sun, 14 Jul 2024 16:41:07 +0800 Subject: [PATCH] CI add type openssl-lite --- .github/workflows/github-CI-Windows.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github-CI-Windows.yml b/.github/workflows/github-CI-Windows.yml index ec375b8d..5fc2f423 100644 --- a/.github/workflows/github-CI-Windows.yml +++ b/.github/workflows/github-CI-Windows.yml @@ -13,7 +13,7 @@ jobs: matrix: #os: [ubuntu-latest, windows-latest] # run native test bits: [32, 64] - ftype: [shared-full, static-lite] + ftype: [shared-full, static-lite, openssl-lite] fail-fast: false # https://github.com/actions/virtual-environments name: mingw${{matrix.bits}}-wintls-winhashes-${{matrix.ftype}} @@ -72,6 +72,7 @@ jobs: mingw-w64-${{env.arch}}-libidn2 mingw-w64-${{env.arch}}-libunistring mingw-w64-${{env.arch}}-gettext + mingw-w64-${{env.arch}}-openssl # In here, test requires linux flavor python! - name: Hack python @@ -140,7 +141,7 @@ jobs: cd libmetalink-0.1.3 ./configure --disable-xmltest make install - elif [ "${{matrix.ftype}}" = "static-lite" ]; then + else wget https://github.com/win-iconv/win-iconv/archive/refs/tags/v0.0.8.tar.gz tar -xvzf v0.0.8.tar.gz cd win-iconv-0.0.8 @@ -153,11 +154,13 @@ jobs: mkdir -p $CDir cd $CDir pwd - export CFLAGS+=" -Wall -D_WIN32_WINNT=0x0600 -DGNULIB_defined_ESOCK -DSite=https://github.com/lifenjoiner/wget-for-windows" + export CFLAGS+=" -Wall -DGNULIB_defined_ESOCK -DSite=https://github.com/lifenjoiner/wget-for-windows" if [ "${{matrix.ftype}}" = "shared-full" ]; then - CFLAGS+=" -O2" $BRoot/configure --prefix=$BRoot/$BDir --disable-rpath --with-cares --with-winidn --enable-threads=windows + CFLAGS+=" -D_WIN32_WINNT=0x0600 -O2" $BRoot/configure --prefix=$BRoot/$BDir --disable-rpath --with-cares --with-winidn --enable-threads=windows elif [ "${{matrix.ftype}}" = "static-lite" ]; then - CFLAGS+=" -Os" LDFLAGS="-static -s" $BRoot/configure --prefix=$BRoot/$BDir --disable-debug --disable-rpath --disable-nls --without-libpsl --without-metalink --disable-pcre --disable-pcre2 --with-winidn --enable-threads=windows + CFLAGS+=" -D_WIN32_WINNT=0x0600 -Os" LDFLAGS="-static -s" $BRoot/configure --prefix=$BRoot/$BDir --disable-debug --disable-rpath --disable-nls --without-libpsl --without-metalink --disable-pcre --disable-pcre2 --with-winidn --enable-threads=windows + elif [ "${{matrix.ftype}}" = "openssl-lite" ]; then + CFLAGS+=" -Os" LDFLAGS="-static -s" $BRoot/configure --prefix=$BRoot/$BDir --with-ssl=openssl --disable-debug --disable-rpath --disable-nls --without-libpsl --without-metalink --disable-pcre --disable-pcre2 --with-winidn --enable-threads=windows fi # <-- @@ -229,7 +232,7 @@ jobs: - name: Upload release assets uses: softprops/action-gh-release@v2 - if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.ftype == 'static-lite' }} + if: ${{ startsWith(github.ref, 'refs/tags/') && (matrix.ftype == 'static-lite' || matrix.ftype == 'openssl-lite') }} with: draft: true files: |