Skip to content

Commit

Permalink
ci: Only run ARM-related jobs if related settings are present
Browse files Browse the repository at this point in the history
This allows CI to properly run through in a fork, which doesn't have the SSH_ARM_xxx settings.
  • Loading branch information
wolfgangwalther committed Feb 24, 2024
1 parent 6caaee7 commit bff9e95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:

arm:
name: Build / Cabal - aarch64 GHC 9.4.8
if: secrets.SSH_ARM_HOST
runs-on: ubuntu-latest
outputs:
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
Expand Down Expand Up @@ -103,7 +104,9 @@ jobs:

prepare:
name: Release / Prepare
if: startsWith(github.ref, 'refs/tags/v')
if: |
startsWith(github.ref, 'refs/tags/v') &&
(success() || jobs.arm.result == 'skipped')
runs-on: ubuntu-latest
needs:
- docs
Expand Down

0 comments on commit bff9e95

Please sign in to comment.