Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.15 KB

how-to-release.md

File metadata and controls

35 lines (30 loc) · 1.15 KB

How to Release

MegCC depends some third party projects, include:

  • MegEngine
  • llvm-project
  • flatbuffer
  • flatcc
  • googletest

When release all the third party will build into MegCC, for convenience,MegCC provides a script release_megcc.sh to build and pack the release file.

Requirement

  • Cmake above 3.15.2
  • Ninja
  • gcc

Release

  1. Modify major/minor/patch in compiler/include/compiler/Common/Version.h.in
  2. Write changelog
  3. Git tag branch
  4. Run the script release_megcc.sh in docker image with a directory in which all release file will be generated. Finally a tar file named megcc_relase_*.tar.gz will created by compressing all file in the release directory.
cd /path/to/megcc
# build docker image, if built skip it
docker build script/docker -t megcc_manlylinux2014
# run release script
./script/docker_release_megcc.sh
  1. copy megcc release target to OSS
# copy release target to megcc 
oss cp megcc_release_xxx.tar.gz s3://megengine-built/megcc/megcc_release_xxx.tar.gz 
  1. Send email to notify the users of megcc