From 7129760f436c596e5977310df5cfb00253b1c5f5 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Thu, 1 Oct 2026 09:50:50 +0200 Subject: [PATCH] ci: add windows openssl asset --- .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f7bc1d6..84c6776 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,3 +25,55 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: ssl/assets.tar.gz + + windows: + runs-on: windows-2022 + + env: + VCVARS: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" + PREFIX: "${{ github.workspace }}\\ssl\\openssl-windows-x64" + + steps: + - uses: actions/checkout@v3 + + - name: "install nasm" + shell: bash + run: | + choco install --no-progress nasm + echo "C:\\Program Files\\NASM" >> $GITHUB_PATH + + - name: "download openssl" + shell: bash + run: | + version=$(sed -n 's/^OPENSSL_VERSION := "\(.*\)"/\1/p' ssl/Makefile) + mirror=$(sed -n 's/^OPENSSL_MIRROR := "\(.*\)"/\1/p' ssl/Makefile) + cd ssl + curl -fsSL -o openssl.tar.gz "${mirror}/openssl-${version}.tar.gz" + tar -xzf openssl.tar.gz + mv "openssl-${version}" openssl + + - name: "build openssl" + shell: cmd + working-directory: ssl/openssl + run: | + call "%VCVARS%" || exit /b 1 + set CL=/MP + perl Configure VC-WIN64A no-shared no-deprecated no-tests no-makedepend --prefix="%PREFIX%" --openssldir="%PREFIX%\ssl" || exit /b 1 + nmake /S build_libs || exit /b 1 + nmake /S install_dev || exit /b 1 + + - name: "assets" + shell: bash + run: cd ssl && 7z a openssl-windows-x64.zip openssl-windows-x64 + + - uses: actions/upload-artifact@v7 + with: + name: openssl-windows-x64 + path: ssl/openssl-windows-x64.zip + retention-days: 7 + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ssl/openssl-windows-x64.zip