diff --git a/.github/workflows/build-component.yml b/.github/workflows/build-component.yml index f3e2653..e24d4d9 100644 --- a/.github/workflows/build-component.yml +++ b/.github/workflows/build-component.yml @@ -67,6 +67,9 @@ jobs: run: | echo "BUILD_CONFIGURATION=${{ env.BUILD_CONFIGURATION }}" >> $GITHUB_OUTPUT echo "PLATFORM=${{ env.PLATFORM }}" >> $GITHUB_OUTPUT + echo "Debug=${{ contains(fromJSON(format('[{0}]', needs.compute.outputs.BUILD_CONFIGURATION)), 'Debug') }}" >> $GITHUB_OUTPUT + echo "Release=${{ contains(fromJSON(format('[{0}]', needs.compute.outputs.BUILD_CONFIGURATION)), 'Release') }}" >> $GITHUB_OUTPUT + build: runs-on: windows-2022 @@ -154,7 +157,7 @@ jobs: CHANGELOG.md pack-component: - needs: [build] + needs: [build, compute] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -165,39 +168,34 @@ jobs: merge-multiple: true path: './_result' - - name: Output - run: | - echo "Debug=${{ contains(fromJSON(format('[{0}]', needs.compute.outputs.BUILD_CONFIGURATION)), 'Debug') }}" >> $GITHUB_OUTPUT - echo "Release=${{ contains(fromJSON(format('[{0}]', needs.compute.outputs.BUILD_CONFIGURATION)), 'Release') }}" >> $GITHUB_OUTPUT - - uses: actions/setup-python@v5 with: python-version: '3.10' - name: Pack component Release - if: ${{ env.Release }} + if: ${{ needs.compute.outputs.Release }} run: 'python scripts/pack_component.py' - name: Pack component Debug - if: ${{ env.Debug }} + if: ${{ needs.compute.outputs.Debug }} run: 'python scripts/pack_component.py --debug' - name: Upload build artifact Release - if: ${{ !startsWith(github.ref, 'refs/tags/') && env.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/') && env.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/') && env.Release == 'true' }} + if: ${{ !startsWith(github.ref, 'refs/tags/') && needs.compute.outputs.Release }} uses: actions/upload-artifact@v4 with: name: foo_discord_rich_pdb.zip