diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5973eb..4b5b746 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,6 +73,11 @@ jobs: with: name: platform-tools-${{ matrix.tar }}-x86_64.tar.bz2 path: platform-tools-${{ matrix.tar }}-x86_64.tar.bz2 + - name: Upload move-dev ${{ matrix.tar }} tarball + uses: actions/upload-artifact@v3 + with: + name: move-dev-${{ matrix.tar }}-x86_64.tar.bz2 + path: move-dev-${{ matrix.tar }}-x86_64.tar.bz2 release: name: Upload Release Assets diff --git a/build.sh b/build.sh index 0cf3b1a..200f227 100755 --- a/build.sh +++ b/build.sh @@ -155,9 +155,19 @@ EOF tar -C deploy -jcf ${ARTIFACT} . +# Package LLVM binaries for Move project +MOVE_DEV_TAR=${ARTIFACT/platform-tools/move-dev} +mkdir move-dev +if [[ "${HOST_TRIPLE}" == "x86_64-pc-windows-msvc" ]] ; then + rm -f rust/build/${HOST_TRIPLE}/llvm/bin/{llvm-ranlib.exe,llvm-lib.exe,llvm-dlltool.exe} +fi +cp -R "rust/build/${HOST_TRIPLE}/llvm/"{bin,include,lib} move-dev/ +tar -jcf "${MOVE_DEV_TAR}" move-dev + popd mv "${OUT_DIR}/${ARTIFACT}" . +mv "${OUT_DIR}/${MOVE_DEV_TAR}" . # Build linux binaries on macOS in docker if [[ "$(uname)" == "Darwin" ]] && [[ $# == 1 ]] && [[ "$1" == "--docker" ]] ; then