Skip to content

do not reference websocket handle after callbacks been called #808

do not reference websocket handle after callbacks been called

do not reference websocket handle after callbacks been called #808

Workflow file for this run

name: C/C++ CI
on:
workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macOS, windows]
tls: [ openssl, mbedtls ]
steps:
- name: Install tools
if: matrix.os == 'ubuntu'
run: |
sudo apt install -y valgrind softhsm
- name: Install tools
if: matrix.os == 'macOS'
run: |
brew install pkg-config
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: lukka/get-cmake@latest
- uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: '19af97cba8ca48474e4ad15a24ed50271a9ecdac'
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: ~1.20
- name: build test server
run: |
cd ./tests/test_server
go build -o ${{ github.workspace }}/build/ .
- name: start test server
if: matrix.os != 'windows'
run: |
${{ github.workspace }}/build/test-server -keyfile ./tests/certs/server.key -certfile ./tests/certs/server.crt &
- name: start test server
if: matrix.os == 'windows'
run: |
Start-Process -FilePath ${{ github.workspace }}/build/test-server -ArgumentList "-keyfile","./tests/certs/server.key","-certfile","./tests/certs/server.crt"
- uses: lukka/run-cmake@v10
name: Build and Test
with:
configurePreset: ci-${{ matrix.os }}
configurePresetAdditionalArgs: "[ `-DTLSUV_TLSLIB=${{ matrix.tls }}`, `-DVCPKG_MANIFEST_FEATURES='test;samples;${{ matrix.tls }}'` ]"
buildPreset: ci-${{ matrix.os }}
testPreset: ci-${{ matrix.os }}
testPresetAdditionalArgs: "[ `--output-on-failure`, `--no-compress-output` ]"
- name: Memory Check
uses: lukka/run-cmake@v10
if: always() && matrix.os == 'ubuntu'
with:
configurePreset: ci-${{ matrix.os }}
configurePresetAdditionalArgs: "[ `-DTLSUV_TLSLIB=${{ matrix.tls }}`,`-DVCPKG_MANIFEST_FEATURES='${{ matrix.tls }};test;samples'` ]"
buildPreset: ci-${{ matrix.os }}
testPreset: ci-${{ matrix.os }}
testPresetAdditionalArgs: "[ `--test-dir`, `${{ github.workspace }}/build`, `--output-on-failure`, `--no-compress-output`, `-T`, `MemCheck` ]"
- name: upload test report
if: always()
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.tls }}-TestReport
path: ${{ github.workspace }}/build/Testing/