Skip to content

Commit

Permalink
Create codeql.yml to enable CodeQL C++ scanning (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderVocke authored Jun 24, 2024
1 parent a6fe218 commit 0b32f4f
Show file tree
Hide file tree
Showing 6 changed files with 904 additions and 734 deletions.
15 changes: 9 additions & 6 deletions .github/actions/build_toplevel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ inputs:
description: "Kind of package to build"
coverage:
description: "Whether to run coverage"
upload_artifacts:
description: "Whether to upload artifacts"
default: 'true'
upload_release_assets:
default: 'false'
description: "Whether to attempt uploading assets to a tag release."
Expand Down Expand Up @@ -128,25 +131,25 @@ runs:
echo "=========================================="
printf "\n\n\n\n\n\n"
- name: Upload wheel (${{ inputs.variant_name }})
if: ${{ !env.ACT }}
if: ${{ inputs.upload_artifacts == 'true' }}
uses: actions/upload-artifact@v4
with:
name: wheel_${{ inputs.name }}
path: ${{ steps.find.outputs.name }}
- name: Upload debug info (${{ inputs.variant_name }})
if: ${{ !env.ACT }}
if: ${{ inputs.upload_artifacts == 'true' }}
uses: actions/upload-artifact@v4
with:
name: breakpad_debuginfo_${{ inputs.name }}
path: debuginfo
- name: Upload PyInstaller (${{ inputs.variant_name }})
if: ${{ inputs.pyinstaller }}
if: ${{ inputs.pyinstaller && inputs.upload_artifacts == 'true' }}
uses: actions/upload-artifact@v4
with:
name: pyinstaller_${{ inputs.name }}
path: ${{ steps.pyinstaller.outputs.distribution }}
- name: Upload MacOS app bundle
if: ${{ inputs.appbundle }}
if: ${{ inputs.appbundle && inputs.upload_artifacts == 'true' }}
uses: actions/upload-artifact@v4
with:
name: appbundle_${{ inputs.name }}
Expand All @@ -157,15 +160,15 @@ runs:
run: |
echo "$(realpath build/cp*/)" | tee ori_build_dir.txt
- name: Upload info context for coverage analysis
if: ${{ inputs.coverage }}
if: ${{ inputs.coverage && inputs.upload_artifacts == 'true' }}
uses: actions/upload-artifact@v4
with:
name: coverage_context
path: |
./**/*.gcno
ori_build_dir.txt
- name: Upload .PDB files
if: ${{ inputs.prepare_kind == 'windows' }}
if: ${{ inputs.prepare_kind == 'windows' && inputs.upload_artifacts == 'true' }}
uses: actions/upload-artifact@v4
with:
name: pdb_${{ inputs.name }}
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/prepare_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ runs:
- name: Prepare linux
if: ${{ inputs.variant == 'linux' }}
uses: ./.github/actions/prepare_build_linux
- name: Prepare ubuntu-latest
if: ${{ inputs.variant == 'ubuntu_latest' }}
uses: ./.github/actions/prepare_build_ubuntu_latest
- name: Prepare MacOS
if: ${{ inputs.variant == 'macos' }}
uses: ./.github/actions/prepare_build_macos
Expand Down
12 changes: 12 additions & 0 deletions .github/actions/prepare_build_ubuntu_latest/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: prepare_build_ubuntu_latest
description: Prepare ubuntu-latest for building Shoopdaloop wheels

runs:
using: "composite"
steps:
- name: Install dependencies
shell: bash
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install $(distribution/dependencies/get_dependencies.sh build_base_ubuntu_latest)
PIP_BREAK_SYSTEM_PACKAGES=1 sudo python3 -m pip install --upgrade pip build auditwheel patchelf
Loading

0 comments on commit 0b32f4f

Please sign in to comment.