Skip to content

Commit

Permalink
Update Win OpenSSL and build shared libraries
Browse files Browse the repository at this point in the history
[windows-openssl]
  • Loading branch information
outspace committed Feb 19, 2025
1 parent 8144e24 commit 89f50af
Showing 1 changed file with 35 additions and 24 deletions.
59 changes: 35 additions & 24 deletions .github/workflows/build_openssl_windows.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
name: windows-openssl


on: [push]

on:
- push
jobs:
Build-Libs-OpenSSL-Win:
name: 'Build-OpenSSL-Lib-Windows'
name: Build-OpenSSL-Lib-Windows
runs-on: windows-latest
if: |
if: |+
contains(github.event.head_commit.message, '[all]') ||
contains(github.event.head_commit.message, '[windows]') ||
contains(github.event.head_commit.message, '[windows-openssl]') ||
Expand All @@ -18,16 +17,14 @@ jobs:
arch:
- amd64
- amd64_x86

steps:
- name: 'Get openssl'
- name: Get openssl
uses: actions/checkout@v3
with:
repository: openssl/openssl
ref: openssl-3.0.13
ref: openssl-3.0.16
path: openssl

- name: Setup msbuild environment
- name: Setup msbuild environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
Expand All @@ -48,6 +45,17 @@ jobs:
mkdir build/win32
move libcrypto.lib build/win32
move libssl.lib build/win32
- name: Build Shared OpenSSL x86
if: matrix.arch == 'amd64_x86'
run: |
cd openssl
perl Configure no-tests VC-WIN32
nmake
mkdir build
mkdir build/win32
move libcrypto3.dll build/win32
move libssl3.dll build/win32
- name: Build OpenSSL x64
if: matrix.arch == 'amd64'
run: |
Expand All @@ -60,41 +68,44 @@ jobs:
move libcrypto.lib build/win64
move libssl.lib build/win64
move include build/include
- name: Build Shared OpenSSL x64
if: matrix.arch == 'amd64'
run: |
cd openssl
perl Configure no-tests VC-WIN64A
nmake
mkdir build
mkdir build/win64
move libcrypto-3-x64.dll build/win64
move libssl-3-x64.dll build/win64
- name: Archive Windows OpenSSL libs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: windows-openssl
path: openssl/build


path: openssl/build
github-release:
name: GitHub Release
needs: Build-Libs-OpenSSL-Win
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Setup | Checkout
uses: actions/checkout@v2

- name: Setup | Artifacts
uses: actions/download-artifact@v2

- name: Setup | Checksums
run: for file in $(find ./ -name '*.lib' -or -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

run: for file in $(find ./ -name '*.lib' -or -name '*.dll' ); do openssl dgst
-sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: windows-openssl.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true

file_glob: true

0 comments on commit 89f50af

Please sign in to comment.