File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : SDK tag
22
3- # Auto-pins the plugin ABI contract: on every push to main, if src/sdk/version .zig's
3+ # Auto-pins the plugin ABI contract: on every push to main, if src/sdk/sdk_version .zig's
44# `sdk_version` doesn't already have a matching `sdk-v<major>.<minor>.<patch>` tag, create and
55# push one at this commit. This is the pin point third-party plugins' build.zig.zon `fizzy`
66# dependency uses (docs/PLUGINS.md §2.3) instead of an arbitrary commit SHA.
1313 push :
1414 branches : [main]
1515 paths :
16+ - " src/sdk/sdk_version.zig"
1617 - " src/sdk/version.zig"
1718 workflow_dispatch :
1819
@@ -36,13 +37,13 @@ jobs:
3637 run : |
3738 set -euo pipefail
3839
39- block=$(awk '/pub const sdk_version = std\.SemanticVersion\{/,/\};/' src/sdk/version .zig)
40+ block=$(awk '/pub const sdk_version = std\.SemanticVersion\{/,/\};/' src/sdk/sdk_version .zig)
4041 major=$(grep -oE '\.major = [0-9]+' <<<"$block" | grep -oE '[0-9]+')
4142 minor=$(grep -oE '\.minor = [0-9]+' <<<"$block" | grep -oE '[0-9]+')
4243 patch=$(grep -oE '\.patch = [0-9]+' <<<"$block" | grep -oE '[0-9]+')
4344
4445 if [[ -z "$major" || -z "$minor" || -z "$patch" ]]; then
45- echo "Failed to parse sdk_version out of src/sdk/version .zig" >&2
46+ echo "Failed to parse sdk_version out of src/sdk/sdk_version .zig" >&2
4647 exit 1
4748 fi
4849
You can’t perform that action at this time.
0 commit comments