summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMengsk <[email protected]>2025-11-14 15:10:11 +0100
committerMengsk <[email protected]>2025-11-14 15:10:11 +0100
commitac903db1cee942232bcf7548a04ae6f9b952f08b (patch)
tree7f534d628d0fecb5110a6f4441265651c079fa45 /.github/workflows
parent6b3970d5ff7547778ed5e1fc295dcfd1fbcad7e8 (diff)
parentfc5415bff6f177ad5f122f38dd937f577042bb32 (diff)
Merge remote-tracking branch 'tinyusb/master' into embedded-ideas/master
Signed-off-by: Mengsk <[email protected]>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_util.yml3
-rw-r--r--.github/workflows/static_analysis.yml13
2 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/build_util.yml b/.github/workflows/build_util.yml
index a2c96f3c0..55901b838 100644
--- a/.github/workflows/build_util.yml
+++ b/.github/workflows/build_util.yml
@@ -60,8 +60,9 @@ jobs:
- name: Build
env:
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
+ TOOLCHAIN: ${{ inputs.toolchain }}
run: |
- if [ "${{ inputs.toolchain }}" == "esp-idf" ]; then
+ if [ "$TOOLCHAIN" == "esp-idf" ]; then
docker run --rm -v $PWD:/project -w /project espressif/idf:tinyusb python tools/build.py ${{ matrix.arg }}
else
python tools/build.py -s ${{ inputs.build-system }} ${{ steps.setup-toolchain.outputs.build_option }} ${{ steps.set-one-per-family.outputs.build_option }} ${{ matrix.arg }}
diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml
index 7e74f77ce..4db267517 100644
--- a/.github/workflows/static_analysis.yml
+++ b/.github/workflows/static_analysis.yml
@@ -90,7 +90,8 @@ jobs:
path: ${{ steps.analyze.outputs.sarif-output }}
PVS-Studio:
- if: github.repository_owner == 'hathach'
+ # Only run on non-forked PR since secrets token is required
+ if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -118,13 +119,14 @@ jobs:
sudo apt update
sudo apt install pvs-studio
pvs-studio-analyzer credentials ${{ secrets.PVS_STUDIO_CREDENTIALS }}
+ pvs-studio-analyzer --version
- name: Analyze
run: |
mkdir -p build
cmake examples -B build -G Ninja -DBOARD=${{ matrix.board }} -DCMAKE_BUILD_TYPE=MinSizeRel
cmake --build build
- pvs-studio-analyzer analyze -R .PVS-Studio/.pvsconfig -f build/compile_commands.json --exclude-path hw/mcu/ --exclude-path lib/ -j
+ pvs-studio-analyzer analyze -f build/compile_commands.json -R .PVS-Studio/.pvsconfig -j4 --security-related-issues --misra-cpp-version 2008 --misra-c-version 2023 --use-old-parser -e lib/ -e hw/mcu/ -e */iar/cxarm/ -e pico-sdk/
plog-converter -t sarif -o pvs-studio-${{ matrix.board }}.sarif PVS-Studio.log
- name: Upload SARIF
@@ -140,7 +142,8 @@ jobs:
path: pvs-studio-${{ matrix.board }}.sarif
SonarQube:
- if: github.repository_owner == 'hathach'
+ # Only run on non-forked PR since secrets token is required
+ if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
@@ -183,7 +186,9 @@ jobs:
--define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json
IAR-CStat:
- if: github.repository_owner == 'hathach'
+ # Only run on non-forked PR since secrets token is required
+ #if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false
+ if: false
runs-on: ubuntu-latest
strategy:
fail-fast: false