]> git.ipfire.org Git - thirdparty/openssl.git/blob - .github/workflows/windows_comp.yml
4c5ae9fd695702678e71e9578f6c5c547f739759
[thirdparty/openssl.git] / .github / workflows / windows_comp.yml
1 # Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
2 #
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
7
8 name: Windows Compression GitHub CI
9
10 on:
11 pull_request:
12 paths:
13 - 'crypto/comp/*.c'
14 push:
15 paths:
16 - '**.c'
17
18 permissions:
19 contents: read
20
21 jobs:
22 zstd:
23 runs-on: windows-latest
24 steps:
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
31 run: mkdir _build
32 - name: Get zstd
33 working-directory: _build
34 run: |
35 vcpkg install zstd:x64-windows
36 - name: config
37 working-directory: _build
38 run: |
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
41 - name: build
42 working-directory: _build
43 run: nmake
44 - name: download coreinfo
45 uses: suisei-cn/actions-download-file@v1.6.0
46 with:
47 url: "https://download.sysinternals.com/files/Coreinfo.zip"
48 target: _build/coreinfo/
49 - name: get cpu info
50 working-directory: _build
51 continue-on-error: true
52 run: |
53 7z.exe x coreinfo/Coreinfo.zip
54 ./Coreinfo64.exe -accepteula -f
55 ./apps/openssl.exe version -c
56 - name: Check platform symbol usage
57 run: |
58 perl ./util/checkplatformsyms.pl ./util/platform_symbols/windows-symbols.txt libcrypto-3-x64.dll ./libssl-3-x64.dll
59 - name: test
60 working-directory: _build
61 run: |
62 $env:Path+=";C:\vcpkg\packages\zstd_x64-windows\bin"
63 nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4
64 brotli:
65 runs-on: windows-latest
66 steps:
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
73 run: mkdir _build
74 - name: Get brotli
75 working-directory: _build
76 run: |
77 vcpkg install brotli:x64-windows
78 - name: config
79 working-directory: _build
80 run: |
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
83 - name: build
84 working-directory: _build
85 run: nmake
86 - name: download coreinfo
87 uses: suisei-cn/actions-download-file@v1.6.0
88 with:
89 url: "https://download.sysinternals.com/files/Coreinfo.zip"
90 target: _build/coreinfo/
91 - name: get cpu info
92 working-directory: _build
93 continue-on-error: true
94 run: |
95 7z.exe x coreinfo/Coreinfo.zip
96 ./Coreinfo64.exe -accepteula -f
97 ./apps/openssl.exe version -c
98 - name: test
99 working-directory: _build
100 run: |
101 $env:Path+=";C:\vcpkg\packages\brotli_x64-windows\bin"
102 nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4