aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-12-04 07:20:04 -0800
committerGitHub <noreply@github.com>2024-12-04 07:20:04 -0800
commit6551e3063043b86acc90476297645150bd198c3a (patch)
treef778b332a0becb3494c8e93cea9bf14de9df101e /.github
parent734dba04d13bc7a6714134af322d49f333bfdc4c (diff)
parent48bdbf12d0db441bb565c306385a88d05b3903b2 (diff)
downloadrneovim-6551e3063043b86acc90476297645150bd198c3a.tar.gz
rneovim-6551e3063043b86acc90476297645150bd198c3a.tar.bz2
rneovim-6551e3063043b86acc90476297645150bd198c3a.zip
Merge #31358 fix test failures for release / tarball builds
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml21
1 files changed, 14 insertions, 7 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0885efddd5..c7802d2210 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -106,7 +106,7 @@ jobs:
[
{ runner: ubuntu-24.04, os: ubuntu, flavor: asan, cc: clang, flags: -D ENABLE_ASAN_UBSAN=ON },
{ runner: ubuntu-24.04, os: ubuntu, flavor: tsan, cc: clang, flags: -D ENABLE_TSAN=ON },
- { runner: ubuntu-24.04, os: ubuntu, cc: gcc },
+ { runner: ubuntu-24.04, os: ubuntu, flavor: release, cc: gcc, flags: -D CMAKE_BUILD_TYPE=Release },
{ runner: macos-13, os: macos, flavor: intel, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER },
{ runner: macos-15, os: macos, flavor: arm, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER },
{ runner: ubuntu-24.04, os: ubuntu, flavor: puc-lua, cc: gcc, deps_flags: -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON, flags: -D PREFER_LUA=ON },
@@ -145,6 +145,10 @@ jobs:
sudo cpanm -n Neovim::Ext || cat "$HOME/.cpanm/build.log"
perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'
+ - name: Remove .git directory
+ if: ${{ matrix.build.os == 'ubuntu' }}
+ run: cmake -E rm -rf -- .git
+
- name: Build third-party deps
run: |
cmake -S cmake.deps --preset ci -D CMAKE_BUILD_TYPE=Debug ${{ matrix.build.deps_flags }}
@@ -155,9 +159,15 @@ jobs:
cmake --preset ci -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX ${{ matrix.build.flags }}
cmake --build build
- - name: ${{ matrix.test }}
+ - if: ${{ matrix.test == 'oldtest' }}
+ name: ${{ matrix.test }}
+ timeout-minutes: 20
+ run: make -C test/old/testdir NVIM_PRG=$(realpath build)/bin/nvim
+
+ - if: ${{ matrix.test != 'oldtest' }}
+ name: ${{ matrix.test }}
timeout-minutes: 20
- run: make ${{ matrix.test }}
+ run: cmake --build build --target ${{ matrix.test }}
- name: Install
run: |
@@ -194,7 +204,7 @@ jobs:
uses: ./.github/workflows/test_windows.yml
# This job tests the following things:
- # - Check if Release, MinSizeRel and RelWithDebInfo compiles correctly.
+ # - Check if MinSizeRel and RelWithDebInfo compiles correctly.
# - Test the above build types with the GCC compiler specifically.
# Empirically the difference in warning levels between GCC and other
# compilers is particularly big.
@@ -218,9 +228,6 @@ jobs:
- name: Configure
run: cmake --preset ci -G "Ninja Multi-Config"
- - name: Release
- run: cmake --build build --config Release
-
- name: RelWithDebInfo
run: cmake --build build --config RelWithDebInfo