From: Tomas Mraz Date: Tue, 9 Jul 2024 09:12:58 +0000 (+0200) Subject: windows_comp.yml: Run openssl after it is built X-Git-Tag: openssl-3.4.0-alpha1~371 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=850bd09cf9f8c44a7c6b1fdcdde8a147748ee513;p=thirdparty%2Fopenssl.git windows_comp.yml: Run openssl after it is built Reviewed-by: Neil Horman Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/24820) --- diff --git a/.github/workflows/windows_comp.yml b/.github/workflows/windows_comp.yml index e7f8922ccfb..34c5c3208b1 100644 --- a/.github/workflows/windows_comp.yml +++ b/.github/workflows/windows_comp.yml @@ -11,6 +11,7 @@ on: pull_request: paths: - 'crypto/comp/*.c' + - '.github/workflows/windows_comp.yml' push: paths: - '**.c' @@ -33,12 +34,21 @@ jobs: working-directory: _build run: | vcpkg install zstd:x64-windows + - name: config + working-directory: _build + run: | + perl ..\Configure enable-comp enable-zstd --with-zstd-include=C:\vcpkg\packages\zstd_x64-windows\include --with-zstd-lib=C:\vcpkg\packages\zstd_x64-windows\lib\zstd.lib no-makedepend -DOSSL_WINCTX=openssl VC-WIN64A + perl configdata.pm --dump + - name: build + working-directory: _build + run: nmake - name: Gather openssl version info working-directory: _build run: | + $env:Path+=";C:\vcpkg\packages\zstd_x64-windows\bin" apps/openssl.exe version -v apps/openssl.exe version -v | %{($_ -split '\s+')[1]} - apps/openssl.exe version -v | %{($_ -split '\s+')[1] -replace '([0-9]+\.[0-9]+)(\..*)','$1'} + apps/openssl.exe version -v | %{($_ -split '\s+')[1] -replace '([0-9]+\.[0-9]+)(\..*)','$1'} echo "OSSL_VERSION=$(apps/openssl.exe version -v | %{($_ -split '\s+')[1] -replace '([0-9]+\.[0-9]+)(\..*)','$1'})" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - name: Set registry keys working-directory: _build @@ -48,14 +58,6 @@ jobs: reg.exe add HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v ENGINESDIR /t REG_EXPAND_SZ /d TESTOPENSSLDIR /reg:32 reg.exe add HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v MODULESDIR /t REG_EXPAND_SZ /d TESTOPENSSLDIR /reg:32 reg.exe query HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v OPENSSLDIR /reg:32 - - name: config - working-directory: _build - run: | - perl ..\Configure enable-comp enable-zstd --with-zstd-include=C:\vcpkg\packages\zstd_x64-windows\include --with-zstd-lib=C:\vcpkg\packages\zstd_x64-windows\lib\zstd.lib no-makedepend -DOSSL_WINCTX=openssl VC-WIN64A - perl configdata.pm --dump - - name: build - working-directory: _build - run: nmake - name: download coreinfo uses: suisei-cn/actions-download-file@v1.6.0 with: @@ -65,6 +67,7 @@ jobs: working-directory: _build continue-on-error: true run: | + $env:Path+=";C:\vcpkg\packages\zstd_x64-windows\bin" 7z.exe x coreinfo/Coreinfo.zip ./Coreinfo64.exe -accepteula -f ./apps/openssl.exe version -c @@ -90,13 +93,22 @@ jobs: working-directory: _build run: | vcpkg install brotli:x64-windows + - name: config + working-directory: _build + run: | + perl ..\Configure enable-comp enable-brotli --with-brotli-include=C:\vcpkg\packages\brotli_x64-windows\include --with-brotli-lib=C:\vcpkg\packages\brotli_x64-windows\lib no-makedepend -DOSSL_WINCTX=openssl VC-WIN64A + perl configdata.pm --dump + - name: build + working-directory: _build + run: nmake - name: Gather openssl version info working-directory: _build run: | + $env:Path+=";C:\vcpkg\packages\brotli_x64-windows\bin" apps/openssl.exe version -v - apps/openssl.exe version -v | awk '{print $2}' - apps/openssl.exe version -v | awk '{print $2}' | sed -e's/-.*$//' - echo "OSSL_VERSION=$(apps/openssl.exe version -v | awk '{print $2}' | sed -e's/-.*$//')" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append + apps/openssl.exe version -v | %{($_ -split '\s+')[1]} + apps/openssl.exe version -v | %{($_ -split '\s+')[1] -replace '([0-9]+\.[0-9]+)(\..*)','$1'} + echo "OSSL_VERSION=$(apps/openssl.exe version -v | %{($_ -split '\s+')[1] -replace '([0-9]+\.[0-9]+)(\..*)','$1'})" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - name: Set registry keys working-directory: _build run: | @@ -105,14 +117,6 @@ jobs: reg.exe add HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v ENGINESDIR /t REG_EXPAND_SZ /d TESTOPENSSLDIR /reg:32 reg.exe add HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v MODULESDIR /t REG_EXPAND_SZ /d TESTOPENSSLDIR /reg:32 reg.exe query HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v OPENSSLDIR /reg:32 - - name: config - working-directory: _build - run: | - perl ..\Configure enable-comp enable-brotli --with-brotli-include=C:\vcpkg\packages\brotli_x64-windows\include --with-brotli-lib=C:\vcpkg\packages\brotli_x64-windows\lib no-makedepend -DOSSL_WINCTX=openssl VC-WIN64A - perl configdata.pm --dump - - name: build - working-directory: _build - run: nmake - name: download coreinfo uses: suisei-cn/actions-download-file@v1.6.0 with: @@ -122,6 +126,7 @@ jobs: working-directory: _build continue-on-error: true run: | + $env:Path+=";C:\vcpkg\packages\brotli_x64-windows\bin" 7z.exe x coreinfo/Coreinfo.zip ./Coreinfo64.exe -accepteula -f ./apps/openssl.exe version -c