diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7242ac6..8b5cb7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -921,7 +921,12 @@ jobs: sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-Darwin-arm64-metal${{ matrix.archive_suffix }}.zip release: - if: ${{ github.event_name == 'schedule' || github.event.inputs.create_release == 'true' }} + # always() overrides the default behavior of skipping this job when a + # needed build job fails (e.g. one CUDA sm_* matrix leg fails while + # sibling legs succeed and upload). The job must still run so the + # per-family checks below can decide what's actually complete and safe + # to publish. + if: ${{ always() && (github.event_name == 'schedule' || github.event.inputs.create_release == 'true') }} permissions: contents: write