windows_comp.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copyright 2022 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. name: Windows Compression GitHub CI
  8. on:
  9. pull_request:
  10. paths:
  11. - 'crypto/comp/*.c'
  12. push:
  13. paths:
  14. - '**.c'
  15. permissions:
  16. contents: read
  17. jobs:
  18. zstd:
  19. runs-on: windows-latest
  20. steps:
  21. - uses: actions/checkout@v3
  22. - uses: ilammy/msvc-dev-cmd@v1
  23. - uses: ilammy/setup-nasm@v1
  24. - name: prepare the build directory
  25. run: mkdir _build
  26. - name: Get zstd
  27. working-directory: _build
  28. run: |
  29. vcpkg install zstd:x64-windows
  30. - name: config
  31. working-directory: _build
  32. run: |
  33. 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
  34. perl configdata.pm --dump
  35. - name: build
  36. working-directory: _build
  37. run: nmake
  38. - name: test
  39. working-directory: _build
  40. run: |
  41. $env:Path+=";C:\vcpkg\packages\zstd_x64-windows\bin"
  42. nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4
  43. brotli:
  44. runs-on: windows-latest
  45. steps:
  46. - uses: actions/checkout@v3
  47. - uses: ilammy/msvc-dev-cmd@v1
  48. - uses: ilammy/setup-nasm@v1
  49. - name: prepare the build directory
  50. run: mkdir _build
  51. - name: Get brotli
  52. working-directory: _build
  53. run: |
  54. vcpkg install brotli:x64-windows
  55. - name: config
  56. working-directory: _build
  57. run: |
  58. 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
  59. perl configdata.pm --dump
  60. - name: build
  61. working-directory: _build
  62. run: nmake
  63. - name: test
  64. working-directory: _build
  65. run: |
  66. $env:Path+=";C:\vcpkg\packages\brotli_x64-windows\bin"
  67. nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4