mirror of
https://github.com/qvacua/vimr.git
synced 2024-09-11 17:15:34 +03:00
Compare commits
14 Commits
776eb9bd1f
...
9163dc96cc
Author | SHA1 | Date | |
---|---|---|---|
|
9163dc96cc | ||
|
f7a00ce478 | ||
|
09cd3519e0 | ||
|
2e72c661cf | ||
|
9a6fb5b754 | ||
|
f21e71c1d5 | ||
|
9a73f4ad7c | ||
|
dbd658fc5c | ||
|
cd8e19edf6 | ||
|
11de4c720d | ||
|
74d3a9565d | ||
|
d9cc1da85b | ||
|
6445f5521d | ||
|
602161adc2 |
19
.github/workflows/build-universal-neovim.yml
vendored
19
.github/workflows/build-universal-neovim.yml
vendored
@ -7,7 +7,6 @@ on:
|
||||
|
||||
jobs:
|
||||
macos:
|
||||
needs: setup
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -23,6 +22,7 @@ jobs:
|
||||
with:
|
||||
# Perform a full checkout #13471
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
- name: Install dependencies
|
||||
run: brew bundle
|
||||
|
||||
@ -47,20 +47,33 @@ jobs:
|
||||
# Must perform checkout first, since it deletes the target directory
|
||||
# before running, and would therefore delete the downloaded artifacts
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/download-artifact@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: brew-bundle
|
||||
run: brew bundle
|
||||
|
||||
- name: Set tag name env
|
||||
run: |
|
||||
TAG_NAME=${{ github.ref }}
|
||||
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Move downloaded artifacts
|
||||
run: |
|
||||
mv nvim-macos-x86_64/* .
|
||||
mv nvim-macos-arm64/* .
|
||||
rm -r nvim-macos-x86_64
|
||||
rm -r nvim-macos-arm64
|
||||
|
||||
- name: Create universal Neovim
|
||||
run: ./bin/neovim/bin/build_universal_neovim.sh
|
||||
|
||||
# Set as prerelease such that the latest VimR release is marked as the latest stable release
|
||||
- name: Publish release
|
||||
run: |
|
||||
gh release create $TAG_NAME --title "Neovim universal build ${TAG_NAME}" --target $GITHUB_SHA nvim-macos-x86_64/nvim-macos-x86_64.tar.gz nvim-macos-arm64/nvim-macos-arm64.tar.gz nvim-macos-universal.tar.bz
|
||||
gh release create $TAG_NAME \
|
||||
--prerelease \
|
||||
--title "Universal ${TAG_NAME}" \
|
||||
--target $GITHUB_SHA nvim-macos-x86_64.tar.gz nvim-macos-arm64.tar.gz nvim-macos-universal.tar.bz
|
||||
|
10
DEVELOP.md
10
DEVELOP.md
@ -23,6 +23,16 @@ defaults write com.qvacua.VimR enable-debug-menu 1
|
||||
|
||||
## How to release
|
||||
|
||||
### Neovim
|
||||
|
||||
* Commit and push the new release of Neovim.
|
||||
* Tag and push with the following
|
||||
```bash
|
||||
version=neovim-vX.Y.Z-$(date "+%Y%m%d.%H%M%S"); git tag -a "${version}" -m "${version}"; git push origin "${version}"
|
||||
```
|
||||
|
||||
### VimR
|
||||
|
||||
* Set a new version of VimR via
|
||||
```bash
|
||||
is_snapshot=true ./bin/set_new_versions.sh # for snapshot or
|
||||
|
2
Neovim
2
Neovim
@ -1 +1 @@
|
||||
Subproject commit 8744ee8783a8597f9fce4a573ae05aca2f412120
|
||||
Subproject commit 27fb62988e922c2739035f477f93cc052a4fee1e
|
@ -23,6 +23,8 @@ main() {
|
||||
|
||||
local universal_folder_path; universal_folder_path="$(pwd)/nvim-macos-universal";
|
||||
readonly universal_folder_path
|
||||
echo "${universal_folder_path}"
|
||||
ls -la
|
||||
|
||||
mkdir -p "${universal_folder_path}/bin"
|
||||
cp -r nvim-macos-arm64/share "${universal_folder_path}"
|
||||
@ -31,7 +33,6 @@ main() {
|
||||
lipo -create nvim-macos-arm64/bin/nvim nvim-macos-x86_64/bin/nvim \
|
||||
-output "${universal_folder_path}/bin/nvim"
|
||||
for f in nvim-macos-arm64/lib/nvim/parser/*; do
|
||||
echo "${f}"
|
||||
f="${f%/}"
|
||||
local filename="${f##*/}"
|
||||
lipo -create "nvim-macos-arm64/lib/nvim/parser/${filename}" \
|
||||
@ -39,7 +40,7 @@ main() {
|
||||
-output "${universal_folder_path}/share/nvim/runtime/parser/${filename}"
|
||||
done
|
||||
|
||||
tar -cjf nvim-macos-universal
|
||||
tar -cjf nvim-macos-universal.tar.bz nvim-macos-universal
|
||||
|
||||
popd >/dev/null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user