1 # Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved.
3 # Licensed under the Apache License 2.0 (the "License"). You may not use
4 # this file except in compliance with the License. You can obtain a copy
5 # in the file LICENSE in the source distribution or at
6 # https://www.openssl.org/source/license.html
8 name: Windows Compression GitHub CI
23 runs-on: windows-latest
25 - uses: actions/checkout@v4
26 - name: checkout fuzz/corpora submodule
27 run: git submodule update --init --depth 1 fuzz/corpora
28 - uses: ilammy/msvc-dev-cmd@v1
29 - uses: ilammy/setup-nasm@v1
30 - name: prepare the build directory
33 working-directory: _build
35 vcpkg install zstd:x64-windows
37 working-directory: _build
39 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 VC-WIN64A
40 perl configdata.pm --dump
42 working-directory: _build
44 - name: download coreinfo
45 uses: suisei-cn/actions-download-file@v1.6.0
47 url: "https://download.sysinternals.com/files/Coreinfo.zip"
48 target: _build/coreinfo/
50 working-directory: _build
51 continue-on-error: true
53 7z.exe x coreinfo/Coreinfo.zip
54 ./Coreinfo64.exe -accepteula -f
55 ./apps/openssl.exe version -c
56 - name: Check platform symbol usage
58 perl ./util/checkplatformsyms.pl ./util/platform_symbols/windows-symbols.txt libcrypto-3-x64.dll ./libssl-3-x64.dll
60 working-directory: _build
62 $env:Path+=";C:\vcpkg\packages\zstd_x64-windows\bin"
63 nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4
65 runs-on: windows-latest
67 - uses: actions/checkout@v4
68 - name: checkout fuzz/corpora submodule
69 run: git submodule update --init --depth 1 fuzz/corpora
70 - uses: ilammy/msvc-dev-cmd@v1
71 - uses: ilammy/setup-nasm@v1
72 - name: prepare the build directory
75 working-directory: _build
77 vcpkg install brotli:x64-windows
79 working-directory: _build
81 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 VC-WIN64A
82 perl configdata.pm --dump
84 working-directory: _build
86 - name: download coreinfo
87 uses: suisei-cn/actions-download-file@v1.6.0
89 url: "https://download.sysinternals.com/files/Coreinfo.zip"
90 target: _build/coreinfo/
92 working-directory: _build
93 continue-on-error: true
95 7z.exe x coreinfo/Coreinfo.zip
96 ./Coreinfo64.exe -accepteula -f
97 ./apps/openssl.exe version -c
99 working-directory: _build
101 $env:Path+=";C:\vcpkg\packages\brotli_x64-windows\bin"
102 nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4