Skip to content

Commit a2ff409

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 7cb39d9 commit a2ff409

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/lib.sh

+6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ then
161161
MAKEFLAGS="$MAKEFLAGS --jobs=10"
162162
test windows_nt != "$CI_OS_NAME" ||
163163
GIT_TEST_OPTS="--no-chain-lint --no-bin-wrappers $GIT_TEST_OPTS"
164+
case "$CI_OS_NAME" in
165+
linux) runs_on_pool=ubuntu-latest;;
166+
macos|osx) runs_on_pool=macos-latest;;
167+
windows_nt) runs_on_pool=windows-latest;;
168+
*) echo "Unhandled OS: $CI_OS_NAME" >&2; exit 1;;
169+
esac
164170
elif test true = "$GITHUB_ACTIONS"
165171
then
166172
CI_TYPE=github-actions

0 commit comments

Comments
 (0)