mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
105 lines
3.8 KiB
YAML
105 lines
3.8 KiB
YAML
name: On demand ad hoc test
|
|
on:
|
|
workflow_dispatch:
|
|
env:
|
|
IPV6: 0
|
|
jobs:
|
|
mip89:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [mip_vc98]
|
|
ipv6: [0, 1]
|
|
name: MIP C89 ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with: { fetch-depth: 2 }
|
|
- run: make -C test ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
mipbe:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [mip_s390]
|
|
ipv6: [0, 1]
|
|
name: MIP be ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with: { fetch-depth: 2 }
|
|
- run: sudo apt -y update ; sudo apt -y install binfmt-support qemu-user-static && docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && make -C test ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
|
|
l2:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
cc: [gcc, clang, g++, clang++]
|
|
target: [eth_test, ppp_test]
|
|
ipv6: [0, 1]
|
|
name: L2 ${{ matrix.target }} CC=${{ matrix.cc }} IPV6=${{ matrix.ipv6 }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with: { fetch-depth: 2 }
|
|
- uses: webfactory/ssh-agent@v0.10.0
|
|
with:
|
|
ssh-private-key: ${{ secrets.HEALTH_TESTS_SSH_KEY }}
|
|
- run: make -C test ${{ matrix.target }} IPV6=${{ matrix.ipv6 }} CC=${{ matrix.cc }} > log
|
|
- if: success() || failure()
|
|
run: |
|
|
cat log
|
|
test/health.awk < log > json
|
|
scp -o "StrictHostKeyChecking=no" json "root@176.9.217.245:/data/downloads/health/${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.ipv6 }}_$(date +"%Y%m%d").json"
|
|
l289:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [eth_vc98, ppp_vc98]
|
|
ipv6: [0, 1]
|
|
name: L2 C89 ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with: { fetch-depth: 2 }
|
|
- run: make -C test ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
l2be:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [eth_s390, ppp_s390]
|
|
ipv6: [0, 1]
|
|
name: L2 be ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with: { fetch-depth: 2 }
|
|
- run: sudo apt -y update ; sudo apt -y install binfmt-support qemu-user-static && docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && make -C test ${{ matrix.target }} IPV6=${{ matrix.ipv6 }}
|
|
|
|
|
|
# macos:
|
|
# runs-on: macos-latest
|
|
# strategy:
|
|
# fail-fast: false
|
|
# matrix:
|
|
# ssl: [MBEDTLS, WOLFSSL]
|
|
# select: [-DMG_ENABLE_POLL=1]
|
|
# name: macos SSL=${{ matrix.ssl }} TFLAGS=${{ matrix.select }}
|
|
# env:
|
|
# SSL: ${{ matrix.ssl }}
|
|
# TFLAGS: ${{ matrix.select }} -DMQTT_LOCALHOST -DNO_ABORT -Wno-sign-conversion -Wno-undef # Workarounds for MbedTLS
|
|
# HOMEBREW_NO_AUTO_UPDATE: 1
|
|
# steps:
|
|
# - uses: actions/checkout@v5
|
|
# with: { fetch-depth: 2 }
|
|
# - uses: webfactory/ssh-agent@v0.10.0
|
|
# with:
|
|
# ssh-private-key: ${{ secrets.HEALTH_TESTS_SSH_KEY }}
|
|
# - run: brew install mbedtls wolfssl mosquitto gawk # jq openssl already pre-installed
|
|
# - run: /opt/homebrew/opt/mosquitto/sbin/mosquitto -c /Users/runner/work/mongoose/mongoose/test/mosquitto.conf.macos &
|
|
# - run: make -C test test ASAN_OPTIONS= MBEDTLS=$(echo $(brew --cellar)/mbedtls*/*) OPENSSL=$(echo $(brew --cellar)/openssl*/*) WOLFSSL=$(echo $(brew --cellar)/wolfssl*/*) > log
|
|
# - if: success() || failure()
|
|
# run: |
|
|
# cat log
|
|
# test/health.awk < log > json
|
|
# scp -o "StrictHostKeyChecking=no" json "root@176.9.217.245:/data/downloads/health/macos_test_cc_${{ matrix.ssl }}_${{ matrix.select }}_$(date +"%Y%m%d").json"
|