windows_comp.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. - name: checkout fuzz/corpora submodule
  23. run: git submodule update --init --depth 1 fuzz/corpora
  24. - uses: ilammy/msvc-dev-cmd@v1
  25. - uses: ilammy/setup-nasm@v1
  26. - name: prepare the build directory
  27. run: mkdir _build
  28. - name: Get zstd
  29. working-directory: _build
  30. run: |
  31. vcpkg install zstd:x64-windows
  32. - name: config
  33. working-directory: _build
  34. run: |
  35. 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
  36. perl configdata.pm --dump
  37. - name: build
  38. working-directory: _build
  39. run: nmake
  40. - name: test
  41. working-directory: _build
  42. run: |
  43. $env:Path+=";C:\vcpkg\packages\zstd_x64-windows\bin"
  44. nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4
  45. brotli:
  46. runs-on: windows-latest
  47. steps:
  48. - uses: actions/checkout@v3
  49. - name: checkout fuzz/corpora submodule
  50. run: git submodule update --init --depth 1 fuzz/corpora
  51. - uses: ilammy/msvc-dev-cmd@v1
  52. - uses: ilammy/setup-nasm@v1
  53. - name: prepare the build directory
  54. run: mkdir _build
  55. - name: Get brotli
  56. working-directory: _build
  57. run: |
  58. vcpkg install brotli:x64-windows
  59. - name: config
  60. working-directory: _build
  61. run: |
  62. 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
  63. perl configdata.pm --dump
  64. - name: build
  65. working-directory: _build
  66. run: nmake
  67. - name: test
  68. working-directory: _build
  69. run: |
  70. $env:Path+=";C:\vcpkg\packages\brotli_x64-windows\bin"
  71. nmake test VERBOSE_FAILURE=yes TESTS="-test_fuzz* -test_fipsload" HARNESS_JOBS=4