LPub3D v2.4.8 #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LPub3D security and quality analysis | |
# Trevor SANDY <[email protected]> | |
# Last Update: October 04, 2024 | |
# Copyright (c) 2021 - 2024 by Trevor SANDY | |
# | |
name: quality # used for badge label | |
on: | |
push: | |
branches: | |
- 'master' | |
tags-ignore: | |
- 'continuous' | |
paths-ignore: | |
- 'builds/**' | |
- 'mainApp/docs/**' | |
- 'mainApp/extras/**' | |
- 'mainApp/resources/**' | |
- 'lclib/docs/**' | |
- 'lclib/resources/**' | |
- 'ldvlib/LDVQt/resources/**' | |
- 'ldvlib/WPngImage/**' | |
- 'qsimpleupdater/doc/**' | |
- 'qsimpleupdater/etc/**' | |
jobs: | |
analyze: | |
# if: ${{ false }} # uncomment to disable | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Paths | |
run: | | |
echo "LP3D_3RD_PARTY_PATH=$(cd ../ && echo "$PWD/third_party")" >> ${GITHUB_ENV} | |
echo "LP3D_BUILDPKG_PATH=$(cd ../ && echo "$PWD/buildpkg")" >> ${GITHUB_ENV} | |
- name: Cache | |
id: cache-third-party | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.LP3D_3RD_PARTY_PATH }} | |
key: third-party-analyze-${{ secrets.THIRD_PARTY_CACHE }} | |
- name: Renderers | |
run: | | |
bash -ex builds/utilities/ci/github/linux-compile.sh | |
test -d ${{ env.LP3D_3RD_PARTY_PATH }} && ls -aldFR ${{ env.LP3D_3RD_PARTY_PATH }} || true | |
- name: Initialize | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: cpp | |
config-file: builds/utilities/ci/github/codeql-config.yml | |
- name: Compile | |
run: bash -ex builds/utilities/ci/github/linux-compile.sh | |
env: | |
LP3D_ANALYZE: 1 | |
- name: Diagnostics | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: compile-logs | |
path: ${{ env.LP3D_BUILDPKG_PATH }}/ | |
if-no-files-found: ignore | |
- name: Analysis | |
uses: github/codeql-action/analyze@v3 |