mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 05:06:17 +00:00
Update release CI (#3295)
In the release CI and related scripts, when comparing and printing to the CI, use the most recent **ancestor** tag(s) for the release branch rather than the most recent one(s). And fix the build_wamr_sdk.yml and build_wamr_lldb.yml CIs.
This commit is contained in:
parent
dacb3c4105
commit
4a29794a1b
9
.github/scripts/fetch_and_compare_version.py
vendored
9
.github/scripts/fetch_and_compare_version.py
vendored
|
@ -42,9 +42,12 @@ def fetch_version_from_code():
|
||||||
|
|
||||||
|
|
||||||
def fetch_latest_git_tag():
|
def fetch_latest_git_tag():
|
||||||
list_tag_cmd = (
|
"""
|
||||||
'git tag --list WAMR-*.*.* --sort=committerdate --format="%(refname:short)"'
|
Get the most recent tag from the HEAD,
|
||||||
)
|
if it's main branch, it should be the latest release tag.
|
||||||
|
if it's release/x.x.x branch, it should be the latest release tag of the branch.
|
||||||
|
"""
|
||||||
|
list_tag_cmd = "git describe --tags --abbrev=0 HEAD"
|
||||||
p = subprocess.run(shlex.split(list_tag_cmd), capture_output=True, check=True)
|
p = subprocess.run(shlex.split(list_tag_cmd), capture_output=True, check=True)
|
||||||
|
|
||||||
all_tags = p.stdout.decode().strip()
|
all_tags = p.stdout.decode().strip()
|
||||||
|
|
4
.github/workflows/build_wamr_lldb.yml
vendored
4
.github/workflows/build_wamr_lldb.yml
vendored
|
@ -82,9 +82,7 @@ jobs:
|
||||||
- name: install utils macos
|
- name: install utils macos
|
||||||
if: steps.lldb_build_cache.outputs.cache-hit != 'true' && contains(inputs.runner, 'macos')
|
if: steps.lldb_build_cache.outputs.cache-hit != 'true' && contains(inputs.runner, 'macos')
|
||||||
run: |
|
run: |
|
||||||
brew remove swig
|
brew install swig cmake ninja libedit
|
||||||
brew install swig@4.1 cmake ninja libedit
|
|
||||||
brew link --overwrite swig@4.1
|
|
||||||
sudo rm -rf /Library/Developer/CommandLineTools
|
sudo rm -rf /Library/Developer/CommandLineTools
|
||||||
|
|
||||||
- name: install utils ubuntu
|
- name: install utils ubuntu
|
||||||
|
|
6
.github/workflows/build_wamr_sdk.yml
vendored
6
.github/workflows/build_wamr_sdk.yml
vendored
|
@ -58,6 +58,12 @@ jobs:
|
||||||
sudo rm ${basename}
|
sudo rm ${basename}
|
||||||
sudo mv wasi-sdk-* wasi-sdk
|
sudo mv wasi-sdk-* wasi-sdk
|
||||||
|
|
||||||
|
- name: download dependencies
|
||||||
|
run: |
|
||||||
|
cd ./wamr-app-framework/deps
|
||||||
|
./download.sh
|
||||||
|
working-directory: wamr-sdk
|
||||||
|
|
||||||
- name: generate wamr-sdk release
|
- name: generate wamr-sdk release
|
||||||
run: |
|
run: |
|
||||||
cd ./wamr-app-framework/wamr-sdk
|
cd ./wamr-app-framework/wamr-sdk
|
||||||
|
|
18
.github/workflows/create_tag.yml
vendored
18
.github/workflows/create_tag.yml
vendored
|
@ -32,8 +32,22 @@ jobs:
|
||||||
- name: prepare
|
- name: prepare
|
||||||
id: preparation
|
id: preparation
|
||||||
run: |
|
run: |
|
||||||
# show latest 3 versions
|
# show latest 3 versions on the branch that create release
|
||||||
git tag --list WAMR-*.*.* --sort=committerdate --format="%(refname:short)" | tail -n 3
|
# Set the initial commit to the head of the branch
|
||||||
|
commit="HEAD"
|
||||||
|
#
|
||||||
|
# Loop to get the three most recent tags
|
||||||
|
for i in {1..3}
|
||||||
|
do
|
||||||
|
# Get the most recent tag reachable from the current commit
|
||||||
|
tag=$(git describe --tags --abbrev=0 $commit)
|
||||||
|
|
||||||
|
# Print the tag
|
||||||
|
echo "$tag"
|
||||||
|
|
||||||
|
# Move to the commit before the found tag to find the next tag in the next iteration
|
||||||
|
commit=$(git rev-list -n 1 $tag^)
|
||||||
|
done
|
||||||
# compare latest git tag and semantic version definition
|
# compare latest git tag and semantic version definition
|
||||||
result=$(python3 ./.github/scripts/fetch_and_compare_version.py)
|
result=$(python3 ./.github/scripts/fetch_and_compare_version.py)
|
||||||
echo "script result is ${result}"
|
echo "script result is ${result}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user