You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixup! release: create initial Windows installer build workflow
Update the tag version validation to correctly look for release
candidates in the version string. The `rcN` part optionally appears
after x.y.z[.rcN] and not at the end of the entire VFS-version string.
Also note that the tag looks like `-rcN` (with a dash), but the output
from the version generation script is `.rcN` (with a period).
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
echo "::error::${GITHUB_REF#refs/tags/} is not of the form v2.<X>.<Y>[-rc<N>].vfs.0.<W>" >&2
28
28
exit 1
29
29
}
30
30
- name: Determine tag to build
@@ -49,8 +49,11 @@ jobs:
49
49
50
50
# Verify tag follows rules in GIT-VERSION-GEN (i.e., matches the specified "DEF_VER" in
51
51
# GIT-VERSION-FILE) and matches tag determined from trigger
52
-
make GIT-VERSION-FILE
53
-
test "${{ steps.tag.outputs.version }}" == "$(sed -n 's/^GIT_VERSION *= *//p'< GIT-VERSION-FILE)" || die "GIT-VERSION-FILE tag ($(cat GIT-VERSION-FILE)) does not match ${{ steps.tag.outputs.name }}"
# Convert -rc to .rc to match GIT-VERSION-FILE format
55
+
expected_version="${expected_version//-rc/.rc}"
56
+
test "$expected_version" == "$(sed -n 's/^GIT_VERSION *= *//p'< GIT-VERSION-FILE)" || die "GIT-VERSION-FILE tag ($(cat GIT-VERSION-FILE)) does not match ${{ steps.tag.outputs.name }}"
54
57
# End check prerequisites for the workflow
55
58
56
59
# Build Windows installers (x86_64 & aarch64; installer & portable)
@@ -768,7 +771,7 @@ jobs:
768
771
shell: bash
769
772
run: |
770
773
"${{ matrix.component.command }}" --version | sed 's/git version //' >actual
0 commit comments