Skip to content

chore: update workflow display names to DVLED Transmitter #5

chore: update workflow display names to DVLED Transmitter

chore: update workflow display names to DVLED Transmitter #5

Workflow file for this run

#
# BSD 3-Clause License
# Copyright (C) 2026 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
name: Pull Request
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
branches-ignore:
- main
push:
workflow_dispatch:
jobs:
build:
name: Build DVLED Transmitter
runs-on: self-hosted
steps:
- name: Clean up previous run
run: |
echo "Cleaning up previous run"
rm -rf "${{ github.workspace }}/build"
find "${{ github.workspace }}" -mindepth 1 -maxdepth 1 ! -name 'build' -exec rm -rf {} +
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- name: Build with FFMPEG TX APIs
run: |
echo "Building with FFMPEG TX APIs..."
./scripts/build.sh
if [ ! -f "./build/dvledtx" ]; then
echo "ERROR: Build artifact dvledtx not found!"
exit 1
fi
echo "Build with FFMPEG TX APIs succeess $(file ./build/dvledtx)"
- name: Build with MTL TX APIs
run: |
echo "Building with MTL TX APIs..."
./scripts/build.sh -Denable_mtl_tx=true
if [ ! -f "./build/dvledtx" ]; then
echo "ERROR: Build artifact dvledtx not found!"
exit 1
fi
echo "Build with MTL TX APIs succeess $(file ./build/dvledtx)"
unit-tests:
name: Unit Tests
runs-on: self-hosted
steps:
- name: Execute Unit Tests
run: |
echo "Executing Unit Tests..."
./scripts/test.sh
echo "Unit Tests executed successfully"
static-analysis:
name: Static Analysis
runs-on: self-hosted
steps:
- name: Clean up previous run
run: |
find "${{ github.workspace }}" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- name: cppcheck
run: |
REPORT_DIR="$HOME/static-analysis/${{ github.repository }}/${{ github.run_id }}"
mkdir -p "$REPORT_DIR"
cppcheck \
--enable=warning,style,performance,portability \
--std=c11 --force --inline-suppr \
--suppress=missingIncludeSystem \
-Iinclude src 2>&1 | tee "$REPORT_DIR/cppcheck-report.txt" || true
echo "cppcheck scan complete. Report saved to $REPORT_DIR/cppcheck-report.txt"
- name: flawfinder
run: |
REPORT_DIR="$HOME/static-analysis/${{ github.repository }}/${{ github.run_id }}"
mkdir -p "$REPORT_DIR"
flawfinder --minlevel=3 --dataonly src include 2>&1 | tee "$REPORT_DIR/flawfinder-report.txt" || true
echo "flawfinder scan complete. Report saved to $REPORT_DIR/flawfinder-report.txt"
- name: shellcheck scripts
run: |
REPORT_DIR="$HOME/static-analysis/${{ github.repository }}/${{ github.run_id }}"
mkdir -p "$REPORT_DIR"
shellcheck scripts/build.sh scripts/run.sh 2>&1 | tee "$REPORT_DIR/shellcheck-report.txt" || true
echo "shellcheck scan complete. Report saved to $REPORT_DIR/shellcheck-report.txt"
- name: codespell
run: |
REPORT_DIR="$HOME/static-analysis/${{ github.repository }}/${{ github.run_id }}"
mkdir -p "$REPORT_DIR"
codespell \
--skip="./.git,./build" \
--ignore-words-list=mtl,st20p,st30p \
. 2>&1 | tee "$REPORT_DIR/codespell-report.txt" || true
echo "codespell scan complete. Report saved to $REPORT_DIR/codespell-report.txt"
- name: Upload static analysis reports
uses: actions/upload-artifact@v4
if: always()
with:
name: static-analysis-reports-${{ github.run_id }}
path: ${{ env.HOME }}/static-analysis/${{ github.repository }}/${{ github.run_id }}/
retention-days: 30