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