mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
f05a2891d3
Problem: Dirs "config", "packaging", and "third-party" are all closely related but this is not obvious from the layout. This adds friction for new contributors. Solution: - rename config/ to cmake.config/ - rename test/config/ to test/cmakeconfig/ because it is used in Lua tests: require('test.cmakeconfig.paths'). - rename packaging/ to cmake.packaging/ - rename third-party/ to cmake.deps/ (parallel with .deps/)
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
# sourcehut CI: https://builds.sr.ht/~jmk/neovim
|
|
|
|
image: openbsd/latest
|
|
|
|
packages:
|
|
- autoconf-2.71
|
|
- automake-1.16.3
|
|
- cmake
|
|
- gettext-runtime-0.21p1
|
|
- gettext-tools-0.21p1
|
|
- gmake
|
|
- libtool
|
|
- ninja-1.10.2p0
|
|
- unzip-6.0p14
|
|
- gdb
|
|
|
|
sources:
|
|
- https://github.com/neovim/neovim
|
|
|
|
environment:
|
|
SOURCEHUT: 1
|
|
LC_CTYPE: en_US.UTF-8
|
|
CMAKE_EXTRA_FLAGS: -DCI_BUILD=ON -DMIN_LOG_LEVEL=3
|
|
|
|
tasks:
|
|
- should-run: |
|
|
if ! git -C neovim diff --name-only HEAD^! | grep -E -v "^(.github|runtime/doc/.*)" >/dev/null; then
|
|
echo "Skipping build because only ignored files were changed"
|
|
complete-build
|
|
fi
|
|
- build-deps: |
|
|
export AUTOCONF_VERSION=2.71
|
|
export AUTOMAKE_VERSION=1.16
|
|
mkdir neovim/.deps
|
|
cd neovim/.deps
|
|
cmake -G Ninja ../cmake.deps/
|
|
cmake --build . --config RelWithDebInfo
|
|
- build: |
|
|
mkdir neovim/build
|
|
cd neovim/build
|
|
cmake -G Ninja $CMAKE_EXTRA_FLAGS ..
|
|
cmake --build . --config RelWithDebInfo
|
|
./bin/nvim --version
|
|
- functionaltest: |
|
|
cd neovim/build
|
|
cmake --build . --config RelWithDebInfo --target functionaltest
|
|
- oldtest: |
|
|
cd neovim
|
|
gmake oldtest
|