Skip to content

Commit

Permalink
Allow MacOS builds to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed May 27, 2024
1 parent 6416360 commit 4f7f574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
description: GitHub actions runner to use
default: nixos-23.11
type: string
continue-on-error:
description: Continue building even if some packages fail
default: false
type: boolean

jobs:
build-plan:
Expand Down Expand Up @@ -85,6 +89,7 @@ jobs:
needs: build-plan
name: Build
runs-on: ${{ inputs.runs-on }}
continue-on-error: ${{ inputs.continue-on-error }}
# Matrix can't be empty, so skip the job entirely if nothing needs to be rebuilt.
if: fromJSON(needs.build-plan.outputs.attrs)[0] != null
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ jobs:
with:
system: ${{ matrix.system }}
runs-on: ${{ matrix.runs-on }}
continue-on-error: true
secrets: inherit

0 comments on commit 4f7f574

Please sign in to comment.