Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/git-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- x86_64
- i686
- aarch64
- ucrt64
tag_git_workflow_run_id:
description: 'Workflow run ID of the tag-git pipeline'
required: false
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
exit 1
}

set -x
test -z "$TAG_GIT_WORKFLOW_RUN_ID" ||
die 'existing_git_tag cannot be used with tag_git_workflow_run_id!'

Expand All @@ -86,9 +88,11 @@ jobs:
mkdir -p bundle-artifacts &&
echo "$EXISTING_GIT_TAG" >bundle-artifacts/next_version &&
echo "$EXISTING_GIT_TAG" |
sed -n '/^v[0-9]\+\.[0-9]\+\.[0-9]\+\.windows\.[0-9]\+$/{s/^v//;s/\.windows\.1//;s/\.windows\.\(.*\)/(\1)/;p}' \
sed -n '/^v[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?\.windows\.[0-9]\+$/{s/^v//;s/\.windows\.1//;s/\.windows\.\(.*\)/(\1)/;p}' \
>bundle-artifacts/display_version &&
sed 's/(\(.*\))$/.\1/' <bundle-artifacts/display_version >bundle-artifacts/ver &&
ver="$(cat bundle-artifacts/ver)" &&
test -n "$ver" &&
echo "GIT_VERSION=$EXISTING_GIT_TAG" >> $GITHUB_ENV &&
git fetch --depth 1 --filter blob:none https://github.com/$OWNER/$REPO "refs/tags/$EXISTING_GIT_TAG:refs/tags/$EXISTING_GIT_TAG" &&
echo "GIT_REV=$(git rev-parse --verify "refs/tags/$EXISTING_GIT_TAG"^0)" >>$GITHUB_ENV
Expand Down Expand Up @@ -173,6 +177,12 @@ jobs:
MINGW_PACKAGE_PREFIX=mingw-w64-clang-aarch64
SDK_REPO_ARCH=arm64
;;
ucrt64)
MSYSTEM=UCRT64
MINGW_PREFIX=/ucrt64
MINGW_PACKAGE_PREFIX=mingw-w64-ucrt-x86_64
SDK_REPO_ARCH=64
;;
*)
echo "Unhandled architecture: $ARCHITECTURE"
exit 1
Expand Down