mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
GHA: Include runtime in macos release tarball
This commit is contained in:
parent
08c0eef52a
commit
f4809916d3
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -78,9 +78,7 @@ jobs:
|
||||
- name: Create package
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/build/release"
|
||||
mkdir -p bundle/nvim/libs
|
||||
mkdir -p bundle/nvim/bin
|
||||
cp nvim-osx64/bin/nvim bundle/nvim/bin/
|
||||
mkdir -p nvim-osx64/libs
|
||||
libs=($(otool -L nvim-osx64/bin/nvim | sed 1d | sed -E -e 's|^[[:space:]]*||' -e 's| .*||'))
|
||||
echo "libs:"
|
||||
for lib in "${libs[@]}"; do
|
||||
@ -89,15 +87,15 @@ jobs:
|
||||
else
|
||||
echo " $lib"
|
||||
relname="libs/${lib##*/}"
|
||||
cp -L "$lib" "bundle/nvim/$relname"
|
||||
install_name_tool -change "$lib" "@executable_path/../$relname" bundle/nvim/bin/nvim
|
||||
cp -L "$lib" "nvim-osx64/$relname"
|
||||
install_name_tool -change "$lib" "@executable_path/../$relname" nvim-osx64/bin/nvim
|
||||
fi
|
||||
done
|
||||
tar cjSf nvim-macos.tar.bz2 -C bundle nvim
|
||||
tar cfz nvim-macos.tar.gz nvim-osx64
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: nvim-macos
|
||||
path: build/release/nvim-macos.tar.bz2
|
||||
path: build/release/nvim-macos.tar.gz
|
||||
retention-days: 1
|
||||
|
||||
publish:
|
||||
@ -134,7 +132,7 @@ jobs:
|
||||
gzip: false
|
||||
allow_override: ${{ env.TAG_NAME == 'nightly' }}
|
||||
files: |
|
||||
nvim-macos.tar.bz2:./nvim-macos/nvim-macos.tar.bz2
|
||||
nvim-macos.tar.gz:./nvim-macos/nvim-macos.tar.gz
|
||||
nvim-linux64.tar.gz:./nvim-linux64/nvim-linux64.tar.gz
|
||||
nvim.appimage:./appimage/nvim.appimage
|
||||
nvim.appimage.zsync:./appimage/nvim.appimage.zsync
|
||||
|
Loading…
Reference in New Issue
Block a user