mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
ci(arm64): skip installing npm to prevent segmentation faults
Installing npm on linux arm64 causes intermittent segmentation faults for unknown reasons. Closes https://github.com/neovim/neovim/issues/32339.
This commit is contained in:
17
.github/scripts/install_deps.sh
vendored
17
.github/scripts/install_deps.sh
vendored
@@ -9,8 +9,9 @@ while (($# > 0)); do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
os=$(uname -s)
|
OS=$(uname -s)
|
||||||
if [[ $os == Linux ]]; then
|
ARCH=$(uname -m)
|
||||||
|
if [[ $OS == Linux ]]; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential cmake curl gettext ninja-build
|
sudo apt-get install -y build-essential cmake curl gettext ninja-build
|
||||||
|
|
||||||
@@ -34,13 +35,23 @@ if [[ $os == Linux ]]; then
|
|||||||
|
|
||||||
# Use default CC to avoid compilation problems when installing Python modules
|
# Use default CC to avoid compilation problems when installing Python modules
|
||||||
CC=cc python3 -m pip -q install --user --upgrade --break-system-packages pynvim
|
CC=cc python3 -m pip -q install --user --upgrade --break-system-packages pynvim
|
||||||
|
|
||||||
|
# Skip installing npm on aarch64 as it tends to cause intermittent segmentation faults.
|
||||||
|
# See https://github.com/neovim/neovim/issues/32339.
|
||||||
|
if [[ $ARCH != aarch64 ]]; then
|
||||||
|
npm install -g neovim
|
||||||
|
npm link neovim
|
||||||
fi
|
fi
|
||||||
elif [[ $os == Darwin ]]; then
|
fi
|
||||||
|
elif [[ $OS == Darwin ]]; then
|
||||||
brew update --quiet
|
brew update --quiet
|
||||||
brew install ninja
|
brew install ninja
|
||||||
if [[ -n $TEST ]]; then
|
if [[ -n $TEST ]]; then
|
||||||
brew install cpanminus fswatch
|
brew install cpanminus fswatch
|
||||||
|
|
||||||
|
npm install -g neovim
|
||||||
|
npm link neovim
|
||||||
|
|
||||||
# Use default CC to avoid compilation problems when installing Python modules
|
# Use default CC to avoid compilation problems when installing Python modules
|
||||||
CC=cc python3 -m pip -q install --user --upgrade --break-system-packages pynvim
|
CC=cc python3 -m pip -q install --user --upgrade --break-system-packages pynvim
|
||||||
fi
|
fi
|
||||||
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -139,10 +139,6 @@ jobs:
|
|||||||
echo "Install neovim RubyGem."
|
echo "Install neovim RubyGem."
|
||||||
gem install --no-document --bindir "$BIN_DIR" --user-install --pre neovim
|
gem install --no-document --bindir "$BIN_DIR" --user-install --pre neovim
|
||||||
|
|
||||||
echo "Install neovim npm package"
|
|
||||||
npm install -g neovim
|
|
||||||
npm link neovim
|
|
||||||
|
|
||||||
sudo cpanm -n Neovim::Ext || cat "$HOME/.cpanm/build.log"
|
sudo cpanm -n Neovim::Ext || cat "$HOME/.cpanm/build.log"
|
||||||
perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'
|
perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user