mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
ci: don't automatically enable -Werror if in CI environment
This catches downstream consumers of neovim off-guard when trying to use neovim in an esoteric environment not tested in our own CI. Closes https://github.com/neovim/neovim/issues/22932
This commit is contained in:
@@ -14,7 +14,7 @@ freebsd_task:
|
|||||||
build_deps_script:
|
build_deps_script:
|
||||||
- gmake deps
|
- gmake deps
|
||||||
build_script:
|
build_script:
|
||||||
- gmake nvim
|
- gmake CMAKE_EXTRA_FLAGS="-DCI_BUILD=ON" nvim
|
||||||
workaround_script:
|
workaround_script:
|
||||||
# Run tests as user "cirrus" instead of root. This is required for the
|
# Run tests as user "cirrus" instead of root. This is required for the
|
||||||
# permission-related tests to work correctly.
|
# permission-related tests to work correctly.
|
||||||
|
2
.github/scripts/build_universal_macos.sh
vendored
2
.github/scripts/build_universal_macos.sh
vendored
@@ -25,7 +25,7 @@ MACOSX_DEPLOYMENT_TARGET="$(sw_vers -productVersion | cut -f1 -d.)"
|
|||||||
export MACOSX_DEPLOYMENT_TARGET
|
export MACOSX_DEPLOYMENT_TARGET
|
||||||
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} -D CMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} -D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64
|
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} -D CMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} -D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64
|
||||||
cmake --build .deps
|
cmake --build .deps
|
||||||
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} -D CMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} -D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64 -D CI_BUILD=OFF
|
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} -D CMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} -D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64
|
||||||
cmake --build build
|
cmake --build build
|
||||||
cmake --install build --prefix build/release/nvim-macos
|
cmake --install build --prefix build/release/nvim-macos
|
||||||
cd build
|
cd build
|
||||||
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -67,7 +67,7 @@ jobs:
|
|||||||
run: make deps
|
run: make deps
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make CMAKE_FLAGS="-D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX"
|
run: make CMAKE_FLAGS="-D CI_BUILD=ON -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX"
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: make install
|
run: make install
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
|||||||
- name: Build release
|
- name: Build release
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
CC=gcc-10 make CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} CMAKE_EXTRA_FLAGS="-DCI_BUILD=OFF -DCMAKE_INSTALL_PREFIX:PATH="
|
CC=gcc-10 make CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH="
|
||||||
printf 'version<<END\n' >> $GITHUB_OUTPUT
|
printf 'version<<END\n' >> $GITHUB_OUTPUT
|
||||||
./build/bin/nvim --version | head -n 3 >> $GITHUB_OUTPUT
|
./build/bin/nvim --version | head -n 3 >> $GITHUB_OUTPUT
|
||||||
printf 'END\n' >> $GITHUB_OUTPUT
|
printf 'END\n' >> $GITHUB_OUTPUT
|
||||||
@@ -126,7 +126,7 @@ jobs:
|
|||||||
cmake --build .deps
|
cmake --build .deps
|
||||||
- name: build package
|
- name: build package
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE='RelWithDebInfo' -D CI_BUILD=OFF
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE='RelWithDebInfo'
|
||||||
cmake --build build --target package
|
cmake --build build --target package
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -76,7 +76,7 @@ jobs:
|
|||||||
|
|
||||||
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
|
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
|
||||||
name: configure
|
name: configure
|
||||||
run: cmake -B build -G Ninja -D CI_BUILD=OFF
|
run: cmake -B build -G Ninja
|
||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: Determine if run should be aborted
|
name: Determine if run should be aborted
|
||||||
@@ -197,7 +197,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -G Ninja -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX ${{ matrix.flags }}
|
cmake -B build -G Ninja -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX ${{ matrix.flags }} -D CI_BUILD=ON
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
@@ -276,7 +276,7 @@ jobs:
|
|||||||
cmake --build .deps
|
cmake --build .deps
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -B build -G "Ninja Multi-Config" -D CMAKE_C_COMPILER=gcc
|
run: cmake -B build -G "Ninja Multi-Config" -D CMAKE_C_COMPILER=gcc -D CI_BUILD=ON
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
run: cmake --build build --config Release
|
run: cmake --build build --config Release
|
||||||
@@ -313,7 +313,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE='RelWithDebInfo'
|
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE='RelWithDebInfo' -D CI_BUILD=ON
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
- name: Install test deps
|
- name: Install test deps
|
||||||
@@ -405,5 +405,5 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -G Ninja
|
cmake -B build -G Ninja -D CI_BUILD=ON
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
@@ -26,7 +26,7 @@ APP_DIR="$APP.AppDir"
|
|||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
# Build and install nvim into the AppImage
|
# Build and install nvim into the AppImage
|
||||||
make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXTRA_FLAGS="-DCI_BUILD=OFF -DCMAKE_INSTALL_PREFIX=${APP_DIR}/usr -DCMAKE_INSTALL_MANDIR=man"
|
make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=${APP_DIR}/usr -DCMAKE_INSTALL_MANDIR=man"
|
||||||
make install
|
make install
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@@ -146,11 +146,7 @@ if(HAS_DIAG_COLOR_FLAG)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if($ENV{CI})
|
option(CI_BUILD "CI, extra flags will be set" OFF)
|
||||||
option(CI_BUILD "CI, extra flags will be set" ON)
|
|
||||||
else()
|
|
||||||
option(CI_BUILD "CI, extra flags will be set" OFF)
|
|
||||||
endif()
|
|
||||||
if(CI_BUILD)
|
if(CI_BUILD)
|
||||||
message(STATUS "CI build enabled")
|
message(STATUS "CI build enabled")
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
Reference in New Issue
Block a user