mirror of
https://github.com/espressif/openthread.git
synced 2026-10-21 23:18:17 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 7.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/08c6903cd8c0fde910a37f88322edcfb5dd907a8...3d3c42e5aac5ba805825da76410c181273ba90b1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
313 lines
10 KiB
YAML
313 lines
10 KiB
YAML
#
|
|
# Copyright (c) 2020, The OpenThread Authors.
|
|
# All rights reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms, with or without
|
|
# modification, are permitted provided that the following conditions are met:
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
# notice, this list of conditions and the following disclaimer.
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
# documentation and/or other materials provided with the distribution.
|
|
# 3. Neither the name of the copyright holder nor the
|
|
# names of its contributors may be used to endorse or promote products
|
|
# derived from this software without specific prior written permission.
|
|
#
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
#
|
|
|
|
name: Toranj
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'dependabot/**'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
toranj-ncp:
|
|
name: toranj-ncp-${{ matrix.TORANJ_RADIO }}
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
TORANJ_RADIO: ['15.4']
|
|
env:
|
|
COVERAGE: 1
|
|
TORANJ_RADIO : ${{ matrix.TORANJ_RADIO }}
|
|
TORANJ_NCP : 1
|
|
TORANJ_EVENT_NAME: ${{ github.event_name }}
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: '3.12'
|
|
cache: pip
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --no-install-recommends install -y ninja-build lcov
|
|
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
|
|
- name: Build & Run
|
|
run: |
|
|
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
|
|
|
|
|
|
toranj-cli:
|
|
name: toranj-cli-${{ matrix.TORANJ_RADIO }}
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
TORANJ_RADIO: ['15.4', 'trel', 'multi']
|
|
env:
|
|
COVERAGE: 1
|
|
TORANJ_RADIO : ${{ matrix.TORANJ_RADIO }}
|
|
TORANJ_CLI: 1
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: '3.12'
|
|
cache: pip
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --no-install-recommends install -y ninja-build lcov
|
|
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
|
|
- name: Build & Run
|
|
run: |
|
|
top_builddir=$(pwd)/build/toranj ./tests/toranj/start.sh
|
|
- name: Generate Coverage
|
|
if: "matrix.TORANJ_RADIO != 'multi'"
|
|
run: |
|
|
./script/test generate_coverage gcc
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
if: "matrix.TORANJ_RADIO != 'multi'"
|
|
with:
|
|
name: cov-toranj-cli-${{ matrix.TORANJ_RADIO }}
|
|
path: tmp/coverage.info
|
|
retention-days: 1
|
|
|
|
toranj-unittest:
|
|
name: toranj-unittest
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --no-install-recommends install -y ninja-build
|
|
- name: Build & Run
|
|
run: |
|
|
./tests/toranj/build.sh all
|
|
ninja test
|
|
|
|
toranj-build-log-level:
|
|
name: toranj-build-log-level-${{ matrix.LOG_LEVEL }}
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
LOG_LEVEL: ['DEBG', 'INFO', 'NOTE', 'WARN', 'CRIT', 'NONE']
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --no-install-recommends install -y ninja-build
|
|
- name: Build
|
|
run: |
|
|
./tests/toranj/build.sh --log-level ${{ matrix.LOG_LEVEL }} all
|
|
|
|
toranj-build-ncp:
|
|
name: toranj-build-ncp-${{ matrix.RADIO_LINK }}
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
RADIO_LINK: ['15.4', 'trel', '15.4+trel']
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --no-install-recommends install -y ninja-build
|
|
- name: Build
|
|
run: |
|
|
./tests/toranj/build.sh ncp-${{ matrix.RADIO_LINK }}
|
|
|
|
toranj-build-posix:
|
|
name: toranj-build-posix-${{ matrix.RADIO_LINK }}
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
RADIO_LINK: ['15.4', 'trel', '15.4+trel']
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --no-install-recommends install -y ninja-build
|
|
- name: Build
|
|
run: |
|
|
./tests/toranj/build.sh posix-${{ matrix.RADIO_LINK }}
|
|
|
|
toranj-build-feature:
|
|
name: toranj-build-feature-(${{ matrix.OPTIONS }})
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
OPTIONS:
|
|
- '--enable-plat-key-ref all'
|
|
- '--enable-csl-debug --log-level DEBG all'
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --no-install-recommends install -y ninja-build
|
|
- name: Build
|
|
run: |
|
|
./tests/toranj/build.sh ${{ matrix.OPTIONS }}
|
|
|
|
toranj-macos:
|
|
name: toranj-macos
|
|
runs-on: macos-14
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
brew update
|
|
brew install ninja
|
|
- name: Build
|
|
run: |
|
|
./tests/toranj/build.sh posix-15.4
|
|
|
|
upload-coverage:
|
|
needs:
|
|
- toranj-cli
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
|
|
with:
|
|
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
- name: Bootstrap
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo apt-get --no-install-recommends install -y lcov
|
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
path: coverage/
|
|
pattern: cov-*
|
|
merge-multiple: true
|
|
- name: Combine Coverage
|
|
run: |
|
|
script/test combine_coverage
|
|
- name: Upload Coverage
|
|
uses: codecov/codecov-action@0b35c9ecc4f0529d0eb674914510c22f85b196b4 # v7.1.0
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
with:
|
|
files: final.info
|
|
fail_ci_if_error: ${{ github.repository == 'openthread/openthread' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
|