Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderVocke committed Jun 24, 2024
1 parent b5ca963 commit 6685f77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
cmake_build_type: "Debug"
prepare_kind: 'ubuntu_latest'
python: python
upload_artifacts: 'false'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit 6685f77

Please sign in to comment.