57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
name: DTLS multicast
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
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
|
|
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
|
|
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
|
|
bash "$GITHUB_WORKSPACE/.github/scripts/git-clone-retry.sh" -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
|