Check the release runner has its tools before spending ten minutes

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kristianwind
2026-09-16 10:37:09 +02:00
co-authored by Claude Opus 5
parent d8b2fe054c
commit d9a925ea75
2 changed files with 30 additions and 0 deletions
+15
View File
@@ -44,6 +44,21 @@ jobs:
# the history to do that.
fetch-depth: 0
- name: The tools this release needs are present
# Checked first, because everything below takes about ten minutes and
# discovering that the runner image has no python3 at the publishing
# step means doing all of it again.
run: |
missing=
for t in git curl python3 tar; do
command -v "$t" >/dev/null 2>&1 || missing="$missing $t"
done
if [ -n "$missing" ]; then
echo "::error::This runner is missing:$missing"
exit 1
fi
echo "git, curl, python3 and tar are all present."
- name: The header version is the tag
run: |
HEADER=$(ci/version.sh)
+15
View File
@@ -50,6 +50,21 @@ jobs:
# the history to do that.
fetch-depth: 0
- name: The tools this release needs are present
# Checked first, because everything below takes about ten minutes and
# discovering that the runner image has no python3 at the publishing
# step means doing all of it again.
run: |
missing=
for t in git curl python3 tar; do
command -v "$t" >/dev/null 2>&1 || missing="$missing $t"
done
if [ -n "$missing" ]; then
echo "::error::This runner is missing:$missing"
exit 1
fi
echo "git, curl, python3 and tar are all present."
- name: The header version is the tag
run: |
HEADER=$(ci/version.sh)