LPub3D continuous release_build skip_qemu #355
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: December 01, 2024 | |
# Copyright (c) 2021 - 2025 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-quality | |
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 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
LP3D_COMMIT_MSG: ${{ github.event.head_commit.message }} | |
- 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: | |
GITHUB_TOKEN: ${{ github.token }} | |
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 |