Add CI that builds and runs every example #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: DTLS multicast | |
| on: | |
| push: | |
| paths: | |
| - 'dtls-mcast/**' | |
| - '.github/workflows/dtls-mcast.yml' | |
| - '.github/scripts/mcast-run.sh' | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - 'dtls-mcast/**' | |
| - '.github/workflows/dtls-mcast.yml' | |
| - '.github/scripts/mcast-run.sh' | |
| workflow_call: | |
| inputs: | |
| caller_run_id: | |
| description: 'run id of the calling workflow; keeps a called run in its own concurrency group' | |
| type: string | |
| default: '' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ inputs.caller_run_id && format('dtls-mcast-call-{0}', inputs.caller_run_id) || format('dtls-mcast-{0}', github.ref) }} | |
| cancel-in-progress: ${{ !inputs.caller_run_id }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| mcast: | |
| name: 3-peer DTLS multicast | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 25 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ./.github/actions/apt-update | |
| - name: Install toolchain | |
| run: sudo apt-get install -y --no-install-recommends autoconf automake libtool | |
| # README config: --enable-dtls --enable-mcast | |
| - name: Build wolfSSL (mcast) | |
| run: | | |
| set -euo pipefail | |
| git clone -q --depth 1 --branch master https://github.com/wolfSSL/wolfssl /tmp/wolfssl | |
| cd /tmp/wolfssl | |
| ./autogen.sh >/dev/null | |
| ./configure --enable-dtls --enable-mcast --enable-static --enable-shared \ | |
| --prefix=/tmp/wolfssl-inst >/dev/null | |
| make -j"$(nproc)" >/dev/null | |
| make install >/dev/null | |
| - name: Run 3-peer multicast | |
| run: ./.github/scripts/mcast-run.sh /tmp/wolfssl-inst |