Skip to content

Commit 57f94c3

Browse files
Skip CI job ubuntu-parallel on forks (#766)
* Skip job for forks. * Minor formatting. (`--oversubscribe` is identical to `-oversubscribe`, but `--oversubscribe` is more common) --------- Co-authored-by: Markus Mützel <markus.muetzel@gmx.de>
1 parent b6d4751 commit 57f94c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ubuntu-parallel.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ on:
1414
jobs:
1515

1616
ubuntu:
17+
if: ${{ github.repository == 'ElmerCSC/elmerfem' }} # only run job for main repository (forks usually do not have self-hosted runners)
1718
runs-on: self-hosted
18-
19+
1920
name: ubuntu-parallel (${{ matrix.compiler }})
2021

2122
strategy:

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
"-DWITH_ElmerIce:BOOL=TRUE"
106106

107-
"-DMPIEXEC_PREFLAGS=-oversubscribe"
107+
"-DMPIEXEC_PREFLAGS=--oversubscribe"
108108

109109
"-Wno-dev"
110110
]

0 commit comments

Comments
 (0)