Skip to content

Commit 546bdc7

Browse files
committed
fixup! release: create initial Windows installer build workflow
1 parent 54bbd4a commit 546bdc7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build-git-installers.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Validate tag
2424
run: |
2525
echo "$GITHUB_REF" |
26-
grep -E '^refs/tags/v2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.vfs\.0\.(0|[1-9][0-9]*)(\.rc[0-9])?$' || {
27-
echo "::error::${GITHUB_REF#refs/tags/} is not of the form v2.<X>.<Y>.vfs.0.<W>[.rc<N>]" >&2
26+
grep -E '^refs/tags/v2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-rc[0-9]+)?\.vfs\.0\.(0|[1-9][0-9]*)$' || {
27+
echo "::error::${GITHUB_REF#refs/tags/} is not of the form v2.<X>.<Y>[-rc<N>].vfs.0.<W>" >&2
2828
exit 1
2929
}
3030
- name: Determine tag to build
@@ -50,7 +50,10 @@ jobs:
5050
# Verify tag follows rules in GIT-VERSION-GEN (i.e., matches the specified "DEF_VER" in
5151
# GIT-VERSION-FILE) and matches tag determined from trigger
5252
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 }}"
53+
expected_version="${{ steps.tag.outputs.version }}"
54+
# 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 }}"
5457
# End check prerequisites for the workflow
5558

5659
# Build Windows installers (x86_64 & aarch64; installer & portable)

0 commit comments

Comments
 (0)