Skip to content

Commit

Permalink
Upload llvm binaries tarball for Move CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Mar 25, 2023
1 parent edf9cc6 commit 7957461
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7957461

Please sign in to comment.