Skip to content

Commit

Permalink
Merge pull request #261 from QuTech-Delft/run-gcc-linux-arm64-only-on…
Browse files Browse the repository at this point in the history
…-master

Run cpp-linux-arm64 job only when merging to `develop`
  • Loading branch information
rturrado authored Oct 16, 2024
2 parents fccb90e + 992691c commit b487a0a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
needs: cpp-linters
runs-on: [self-hosted, ARM64, Linux]
container: python:3.11
# Run only when merging to develop (until we have a GitHub-hosted runner for Linux/ARM64)
if: github.ref == 'refs/heads/develop'
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -320,6 +322,15 @@ jobs:
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
|| (
github.ref != 'refs/heads/develop'
&& contains(needs.*.result, 'skipped')
&& !contains(needs.cpp-linux-arm64.result, 'skipped')
)
||
(
github.ref == 'refs/heads/develop'
&& contains(needs.*.result, 'skipped')
)
}}
run: exit 1

0 comments on commit b487a0a

Please sign in to comment.