test.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: test
  2. on: [push, pull_request]
  3. jobs:
  4. ubuntu:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: checkout
  8. uses: actions/checkout@v4
  9. - name: install libraries
  10. run: sudo apt-get update && sudo apt-get install -y libbrotli-dev libcurl4-openssl-dev
  11. - name: build and run tests
  12. run: cd test && make -j4
  13. - name: run fuzz test target
  14. run: cd test && make fuzz_test
  15. macos:
  16. runs-on: macos-latest
  17. steps:
  18. - name: checkout
  19. uses: actions/checkout@v4
  20. - name: build and run tests
  21. run: |
  22. cd test && make -j2
  23. windows:
  24. runs-on: windows-latest
  25. steps:
  26. - name: prepare git for checkout on windows
  27. run: |
  28. git config --global core.autocrlf false
  29. git config --global core.eol lf
  30. - name: checkout
  31. uses: actions/checkout@v4
  32. - name: setup msbuild on windows
  33. uses: microsoft/setup-msbuild@v2
  34. - name: make-windows
  35. run: |
  36. cd test
  37. msbuild.exe test.sln /verbosity:minimal /t:Build "/p:Configuration=Release;Platform=x64"
  38. x64\Release\test.exe