BlueGit

timfa posprint

CI: experimental version is a prerelease of the next stable version

timfa Ada · pushed by timfa

Authored 2026-10-30 · 2 weeks ago

Hash
d53dd001514dcd693a9704660de9d79329a570f4
Parent
9cc3b37d
Pipeline
Passed
1 file changed +3 −2
scripts/ci/experimental-version.sh +3 −2
@@ -1,9 +1,10 @@
1 1 #!/usr/bin/env bash
2 # Version for experimental/tspl2 builds: <Cargo.toml version>-tspl2.<pipeline id>.
2 # Version for experimental/tspl2 builds: <next stable version>-tspl2.<pipeline id>
3 # (a semver prerelease of the next release, e.g. 0.5.10-tspl2.486).
3 4 # Never a bare X.Y.Z, so it can never collide with a stable release or AUR.
4 5 set -euo pipefail
5 6 cd "$(dirname "$0")/../.."
6 base="$(grep -m1 '^version = ' Cargo.toml | tr -d '\r' | sed -E 's/.*"([^"]+)"/\1/')"
7 base="$(bash scripts/ci/next-version.sh | tr -d '\r')"
7 8 base="${base%%-*}"
8 9 mkdir -p artifacts
9 10 v="${base}-tspl2.${CI_PIPELINE_ID:-0}"
@@ -1,9 +1,10 @@
1#!/usr/bin/env bash
1#!/usr/bin/env bash
2# Version for experimental/tspl2 builds: <Cargo.toml version>-tspl2.<pipeline id>.
2# Version for experimental/tspl2 builds: <next stable version>-tspl2.<pipeline id>
3# (a semver prerelease of the next release, e.g. 0.5.10-tspl2.486).
3# Never a bare X.Y.Z, so it can never collide with a stable release or AUR.
4# Never a bare X.Y.Z, so it can never collide with a stable release or AUR.
4set -euo pipefail
5set -euo pipefail
5cd "$(dirname "$0")/../.."
6cd "$(dirname "$0")/../.."
6base="$(grep -m1 '^version = ' Cargo.toml | tr -d '\r' | sed -E 's/.*"([^"]+)"/\1/')"
7base="$(bash scripts/ci/next-version.sh | tr -d '\r')"
7base="${base%%-*}"
8base="${base%%-*}"
8mkdir -p artifacts
9mkdir -p artifacts
9v="${base}-tspl2.${CI_PIPELINE_ID:-0}"
10v="${base}-tspl2.${CI_PIPELINE_ID:-0}"