Skip to content

Commit

Permalink
Update build-component.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
s0hv authored May 26, 2024
1 parent b6d502d commit 93b77ca
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
outputs:
BUILD_CONFIGURATION: ${{ env.BUILD_CONFIGURATION }}
PLATFORM: ${{ env.PLATFORM }}
Debug: ${{ env.Debug }}
Release: ${{ env.Release }}
steps:
- name: Compute outputs
run: |
Expand Down Expand Up @@ -173,29 +175,29 @@ jobs:
python-version: '3.10'

- name: Pack component Release
if: ${{ needs.compute.outputs.Release == 'true' }}
if: ${{ needs.compute.outputs.Release }}
run: 'python scripts/pack_component.py'

- name: Pack component Debug
if: ${{ needs.compute.outputs.Debug == 'true' }}
if: ${{ needs.compute.outputs.Debug' }}
run: 'python scripts/pack_component.py --debug'

- name: Upload build artifact Release
if: ${{ !startsWith(github.ref, 'refs/tags/') && needs.compute.outputs.Release == 'true' }}
if: ${{ !startsWith(github.ref, 'refs/tags/') && needs.compute.outputs.Release }}
uses: actions/upload-artifact@v4
with:
name: 'foo_discord_rich.fb2k-component'
path: _result/Win32_Release/foo_discord_rich.fb2k-component

- name: Upload build artifact Debug
if: ${{ !startsWith(github.ref, 'refs/tags/') && needs.compute.outputs.Debug == 'true' }}
if: ${{ !startsWith(github.ref, 'refs/tags/') && needs.compute.outputs.Debug }}
uses: actions/upload-artifact@v4
with:
name: 'foo_discord_rich.fb2k-component_debug'
path: _result/Win32_Debug/foo_discord_rich.fb2k-component

- name: Upload release debug symbols
if: ${{ !startsWith(github.ref, 'refs/tags/') && needs.compute.outputs.Release == 'true' }}
if: ${{ !startsWith(github.ref, 'refs/tags/') && needs.compute.outputs.Release }}
uses: actions/upload-artifact@v4
with:
name: foo_discord_rich_pdb.zip
Expand Down

0 comments on commit 93b77ca

Please sign in to comment.