test.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: test
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ${{ matrix.os }}
  6. strategy:
  7. matrix:
  8. os: [macOS-latest, ubuntu-latest, windows-latest]
  9. steps:
  10. - name: prepare git for checkout on windows
  11. if: matrix.os == 'windows-latest'
  12. run: |
  13. git config --global core.autocrlf false
  14. git config --global core.eol lf
  15. - name: checkout
  16. uses: actions/checkout@v3
  17. - name: install brotli library on ubuntu
  18. if: matrix.os == 'ubuntu-latest'
  19. run: sudo apt update && sudo apt-get install -y libbrotli-dev
  20. - name: install brotli library on macOS
  21. if: matrix.os == 'macOS-latest'
  22. run: brew install brotli
  23. - name: make
  24. if: matrix.os != 'windows-latest'
  25. run: cd test && make -j2
  26. - name: check fuzz test target
  27. if: matrix.os == 'ubuntu-latest'
  28. run: cd test && make fuzz_test
  29. - name: setup msbuild on windows
  30. if: matrix.os == 'windows-latest'
  31. uses: microsoft/[email protected]
  32. - name: make-windows
  33. if: matrix.os == 'windows-latest'
  34. run: |
  35. cd test
  36. msbuild.exe test.sln /verbosity:minimal /t:Build "/p:Configuration=Release;Platform=x64"
  37. x64\Release\test.exe