2022-10-28 05:55:41 +00:00
|
|
|
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
|
|
|
|
name: the binary release processes
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
require_confirmation:
|
|
|
|
description: "If the process requires a confirmation"
|
|
|
|
type: boolean
|
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
|
|
|
|
# Cancel any in-flight jobs for the same PR/branch so there's only one active
|
|
|
|
# at a time
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
create_tag:
|
|
|
|
uses: ./.github/workflows/create_tag.yml
|
|
|
|
|
|
|
|
create_release:
|
|
|
|
needs: [create_tag]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
steps:
|
2024-01-26 23:55:49 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-10-28 05:55:41 +00:00
|
|
|
|
|
|
|
- name: prepare the release note
|
|
|
|
run: |
|
|
|
|
extract_result="$(python3 ./.github/scripts/extract_from_release_notes.py RELEASE_NOTES.md)"
|
|
|
|
echo "RELEASE_NOTE<<EOF" >> $GITHUB_ENV
|
|
|
|
echo "${extract_result}" >> $GITHUB_ENV
|
|
|
|
echo "EOF" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: create a release
|
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
tag_name: ${{ needs.create_tag.outputs.new_tag }}
|
|
|
|
release_name: ${{ needs.create_tag.outputs.new_tag }}
|
|
|
|
prerelease: ${{ inputs.require_confirmation || needs.create_tag.outputs.minor_version }}
|
|
|
|
draft: false
|
|
|
|
body: ${{ env.RELEASE_NOTE }}
|
|
|
|
|
2023-03-26 04:19:45 +00:00
|
|
|
#
|
|
|
|
# LLVM_LIBRARIES
|
|
|
|
build_llvm_libraries_on_ubuntu_2004:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_llvm_libraries.yml
|
|
|
|
with:
|
|
|
|
os: "ubuntu-20.04"
|
2023-11-16 10:32:28 +00:00
|
|
|
arch: "AArch64 ARM Mips RISCV X86"
|
2023-03-26 04:19:45 +00:00
|
|
|
|
|
|
|
build_llvm_libraries_on_ubuntu_2204:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_llvm_libraries.yml
|
|
|
|
with:
|
|
|
|
os: "ubuntu-22.04"
|
2023-11-16 10:32:28 +00:00
|
|
|
arch: "AArch64 ARM Mips RISCV X86"
|
2023-03-26 04:19:45 +00:00
|
|
|
|
|
|
|
build_llvm_libraries_on_macos:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_llvm_libraries.yml
|
|
|
|
with:
|
2024-04-26 06:38:49 +00:00
|
|
|
os: "macos-13"
|
2023-11-16 10:32:28 +00:00
|
|
|
arch: "AArch64 ARM Mips RISCV X86"
|
2023-03-26 04:19:45 +00:00
|
|
|
|
2024-10-17 02:01:56 +00:00
|
|
|
build_llvm_libraries_on_windows:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_llvm_libraries.yml
|
|
|
|
with:
|
|
|
|
os: "windows-latest"
|
|
|
|
arch: "AArch64 ARM Mips RISCV X86"
|
|
|
|
|
2022-10-28 05:55:41 +00:00
|
|
|
#
|
|
|
|
# WAMRC
|
|
|
|
release_wamrc_on_ubuntu_2004:
|
2023-03-26 04:19:45 +00:00
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_ubuntu_2004]
|
2022-10-28 05:55:41 +00:00
|
|
|
uses: ./.github/workflows/build_wamrc.yml
|
|
|
|
with:
|
2023-03-26 04:19:45 +00:00
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2004.outputs.cache_key }}
|
2022-10-28 05:55:41 +00:00
|
|
|
release: true
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
|
|
|
|
|
|
|
release_wamrc_on_ubuntu_2204:
|
2023-03-26 04:19:45 +00:00
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_ubuntu_2204 ]
|
2022-10-28 05:55:41 +00:00
|
|
|
uses: ./.github/workflows/build_wamrc.yml
|
|
|
|
with:
|
2023-03-26 04:19:45 +00:00
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
|
2022-10-28 05:55:41 +00:00
|
|
|
release: true
|
|
|
|
runner: ubuntu-22.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver }}
|
|
|
|
|
|
|
|
release_wamrc_on_ubuntu_macos:
|
2023-03-26 04:19:45 +00:00
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_macos]
|
2022-10-28 05:55:41 +00:00
|
|
|
uses: ./.github/workflows/build_wamrc.yml
|
|
|
|
with:
|
2023-03-26 04:19:45 +00:00
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_macos.outputs.cache_key }}
|
2022-10-28 05:55:41 +00:00
|
|
|
release: true
|
2024-04-26 06:38:49 +00:00
|
|
|
runner: macos-13
|
2022-10-28 05:55:41 +00:00
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver }}
|
2024-10-17 02:01:56 +00:00
|
|
|
|
|
|
|
release_wamrc_on_windows:
|
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_windows]
|
|
|
|
uses: ./.github/workflows/build_wamrc.yml
|
|
|
|
with:
|
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
|
|
|
|
release: true
|
|
|
|
runner: windows-latest
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver }}
|
2022-10-28 05:55:41 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# IWASM
|
|
|
|
release_iwasm_on_ubuntu_2004:
|
2023-03-26 04:19:45 +00:00
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_ubuntu_2004]
|
2022-10-28 05:55:41 +00:00
|
|
|
uses: ./.github/workflows/build_iwasm_release.yml
|
|
|
|
with:
|
|
|
|
cwd: product-mini/platforms/linux
|
2023-03-26 04:19:45 +00:00
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2004.outputs.cache_key }}
|
2022-10-28 05:55:41 +00:00
|
|
|
runner: ubuntu-20.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
|
|
|
|
|
|
|
release_iwasm_on_ubuntu_2204:
|
2023-03-26 04:19:45 +00:00
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_ubuntu_2204]
|
2022-10-28 05:55:41 +00:00
|
|
|
uses: ./.github/workflows/build_iwasm_release.yml
|
|
|
|
with:
|
|
|
|
cwd: product-mini/platforms/linux
|
2023-03-26 04:19:45 +00:00
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_ubuntu_2204.outputs.cache_key }}
|
2022-10-28 05:55:41 +00:00
|
|
|
runner: ubuntu-22.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
|
|
|
|
|
|
|
release_iwasm_on_macos:
|
2023-03-26 04:19:45 +00:00
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_macos]
|
2022-10-28 05:55:41 +00:00
|
|
|
uses: ./.github/workflows/build_iwasm_release.yml
|
|
|
|
with:
|
|
|
|
cwd: product-mini/platforms/darwin
|
2023-03-26 04:19:45 +00:00
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_macos.outputs.cache_key }}
|
2024-04-26 06:38:49 +00:00
|
|
|
runner: macos-13
|
2022-10-28 05:55:41 +00:00
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
|
|
|
|
2024-10-17 02:01:56 +00:00
|
|
|
release_iwasm_on_windows:
|
|
|
|
needs: [create_tag, create_release, build_llvm_libraries_on_windows]
|
|
|
|
uses: ./.github/workflows/build_iwasm_release.yml
|
|
|
|
with:
|
|
|
|
cwd: product-mini/platforms/windows
|
|
|
|
llvm_cache_key: ${{ needs.build_llvm_libraries_on_windows.outputs.cache_key }}
|
|
|
|
runner: windows-latest
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
|
|
|
|
2022-10-28 05:55:41 +00:00
|
|
|
#
|
|
|
|
# WAMR_SDK
|
|
|
|
release_wamr_sdk_on_ubuntu_2004:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_wamr_sdk.yml
|
|
|
|
with:
|
|
|
|
config_file: wamr_config_ubuntu_release.cmake
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
2023-02-02 01:42:25 +00:00
|
|
|
wasi_sdk_url: https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
|
2024-02-20 10:12:36 +00:00
|
|
|
wamr_app_framework_url: https://github.com/bytecodealliance/wamr-app-framework.git
|
2022-10-28 05:55:41 +00:00
|
|
|
|
|
|
|
release_wamr_sdk_on_ubuntu_2204:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_wamr_sdk.yml
|
|
|
|
with:
|
|
|
|
config_file: wamr_config_ubuntu_release.cmake
|
|
|
|
runner: ubuntu-22.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
2023-02-02 01:42:25 +00:00
|
|
|
wasi_sdk_url: https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
|
2024-02-20 10:12:36 +00:00
|
|
|
wamr_app_framework_url: https://github.com/bytecodealliance/wamr-app-framework.git
|
2022-10-28 05:55:41 +00:00
|
|
|
|
|
|
|
release_wamr_sdk_on_macos:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_wamr_sdk.yml
|
|
|
|
with:
|
|
|
|
config_file: wamr_config_macos_release.cmake
|
2024-04-26 06:38:49 +00:00
|
|
|
runner: macos-13
|
2022-10-28 05:55:41 +00:00
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
2023-02-02 01:42:25 +00:00
|
|
|
wasi_sdk_url: https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-macos.tar.gz
|
2024-02-20 10:12:36 +00:00
|
|
|
wamr_app_framework_url: https://github.com/bytecodealliance/wamr-app-framework.git
|
2022-10-28 05:55:41 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# vscode extension cross-platform
|
|
|
|
release_wamr_ide_vscode_ext:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_wamr_vscode_ext.yml
|
2023-01-09 10:23:37 +00:00
|
|
|
secrets: inherit
|
2022-10-28 05:55:41 +00:00
|
|
|
with:
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver }}
|
|
|
|
|
|
|
|
#
|
|
|
|
# vscode extension docker images package
|
|
|
|
release_wamr_ide_docker_images_package:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_docker_images.yml
|
|
|
|
with:
|
2022-12-14 01:42:03 +00:00
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
2022-10-28 05:55:41 +00:00
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver }}
|
2022-12-14 01:42:03 +00:00
|
|
|
|
2022-10-28 05:55:41 +00:00
|
|
|
#
|
|
|
|
# WAMR_LLDB
|
|
|
|
release_wamr_lldb_on_ubuntu_2004:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_wamr_lldb.yml
|
|
|
|
with:
|
|
|
|
runner: ubuntu-20.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
|
|
|
|
|
|
|
release_wamr_lldb_on_ubuntu_2204:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_wamr_lldb.yml
|
|
|
|
with:
|
|
|
|
runner: ubuntu-22.04
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|
|
|
|
|
|
|
|
release_wamr_lldb_on_macos_universal:
|
|
|
|
needs: [create_tag, create_release]
|
|
|
|
uses: ./.github/workflows/build_wamr_lldb.yml
|
|
|
|
with:
|
2024-04-26 06:38:49 +00:00
|
|
|
runner: macos-13
|
2022-10-28 05:55:41 +00:00
|
|
|
arch: universal
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
ver_num: ${{ needs.create_tag.outputs.new_ver}}
|