Skip to content

Commit d4b07ef

Browse files
committed
ci: adjust Azure Pipeline for runs_on_pool
These refactorings are really gifts that keep on giving. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent caad529 commit d4b07ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/lib.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ then
225225

226226
GIT_TEST_OPTS="--write-junit-xml"
227227
JOBS=10
228+
case "$CI_OS_NAME" in
229+
linux) runs_on_pool=ubuntu-latest;;
230+
macos|osx) runs_on_pool=macos-latest;;
231+
windows_nt) runs_on_pool=windows-latest;;
232+
*) echo "Unhandled OS: $CI_OS_NAME" >&2; exit 1;;
233+
esac
228234
elif test true = "$GITHUB_ACTIONS"
229235
then
230236
CI_TYPE=github-actions

0 commit comments

Comments
 (0)