libvncserver.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. name: libvncserver Tests
  2. # START OF COMMON SECTION
  3. on:
  4. push:
  5. branches: [ 'master', 'main', 'release/**' ]
  6. pull_request:
  7. branches: [ '*' ]
  8. concurrency:
  9. group: ${{ github.workflow }}-${{ github.ref }}
  10. cancel-in-progress: true
  11. # END OF COMMON SECTION
  12. jobs:
  13. build_wolfssl:
  14. name: Build wolfSSL
  15. # Just to keep it the same as the testing target
  16. runs-on: ubuntu-latest
  17. # This should be a safe limit for the tests to run.
  18. timeout-minutes: 4
  19. steps:
  20. - name: Build wolfSSL
  21. uses: wolfSSL/actions-build-autotools-project@v1
  22. with:
  23. path: wolfssl
  24. configure: --enable-all
  25. install: true
  26. # Don't run tests as this config is tested in many other places
  27. check: false
  28. - name: Upload built lib
  29. uses: actions/upload-artifact@v4
  30. with:
  31. name: wolf-install-libvncserver
  32. path: build-dir
  33. retention-days: 5
  34. build_libvncserver:
  35. strategy:
  36. fail-fast: false
  37. matrix:
  38. ref: [ 0.9.13 ]
  39. name: ${{ matrix.ref }}
  40. runs-on: ubuntu-latest
  41. needs: build_wolfssl
  42. steps:
  43. - name: Download lib
  44. uses: actions/download-artifact@v4
  45. with:
  46. name: wolf-install-libvncserver
  47. path: build-dir
  48. - name: Checkout OSP
  49. uses: actions/checkout@v4
  50. with:
  51. repository: wolfssl/osp
  52. path: osp
  53. - name: Checkout libvncserver
  54. uses: actions/checkout@v4
  55. with:
  56. repository: LibVNC/libvncserver
  57. path: libvncserver
  58. ref: LibVNCServer-${{ matrix.ref }}
  59. - name: Build libvncserver
  60. working-directory: libvncserver
  61. run: |
  62. patch -p1 < ../osp/libvncserver/${{ matrix.ref }}.patch
  63. PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build-dir/lib/pkgconfig \
  64. cmake -B build -DWITH_GNUTLS=OFF -DWITH_OPENSSL=OFF -DWITH_GCRYPT=OFF -DWITH_WOLFSSL=ON .
  65. make -j -C build VERBOSE=1
  66. ldd build/libvncclient.so | grep wolfssl
  67. ldd build/libvncserver.so | grep wolfssl
  68. - name: Run libvncserver tests
  69. working-directory: libvncserver
  70. run: make -C build test