mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-11 02:10:49 +02:00
e2f1c54ab4
For each product (wolfSSH, wolfCLU, wolfTPM, wolfMQTT, wolfPKCS11, wolfProvider) this builds wolfSSL and then builds the product against it, at both the product's latest release tag and its master branch. It only checks that they compile, it does not run any tests. If a wolfSSL change breaks a product's latest release on purpose, you say so in a commit message with breaks-<product>=<tag>. A break on a product's master is not allowed and has to be fixed. breaks-wolfssh=v1.5.0-stable Note: wolfSSH v1.5.0-stable does not currently compile against wolfSSL. This commit did not break it, it adds the cross-library check that discovered the break. The token above declares it so the new check tracks it as a known break instead of failing red, until wolfSSH ships a fixed release.
25 lines
722 B
Bash
Executable File
25 lines
722 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Echo the git ref a product should be built at:
|
|
# mode=latest -> the highest version tag (polled)
|
|
# mode=head -> the default branch (master/main, auto-detected)
|
|
# Usage: resolve-ref.sh <repo> <mode>
|
|
set -euo pipefail
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
# shellcheck source=./common.sh
|
|
. "$DIR/common.sh"
|
|
|
|
repo="$1"; mode="$2"
|
|
url="$(resolve_repo_url "$repo")"
|
|
|
|
case "$mode" in
|
|
latest)
|
|
t="$(latest_tag "$url")"
|
|
[ -n "$t" ] || { echo "no tags found for $repo" >&2; exit 1; }
|
|
printf '%s\n' "$t" ;;
|
|
head)
|
|
default_branch "$url" ;;
|
|
*)
|
|
echo "resolve-ref: unknown mode '$mode' (expected 'head' or 'latest')" >&2
|
|
exit 2 ;;
|
|
esac
|