aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2024-11-27 07:55:55 -0500
committerJames McCoy <jamessan@jamessan.com>2024-12-03 06:31:09 -0500
commitc410375d4d7df80577c66d1241069d7f9f62983a (patch)
tree77ea6fd150dde7bd04c012eda09144a4c287db47
parent9123bc0f3ff1607494dc859fa4df8eba3ec15540 (diff)
downloadrneovim-c410375d4d7df80577c66d1241069d7f9f62983a.tar.gz
rneovim-c410375d4d7df80577c66d1241069d7f9f62983a.tar.bz2
rneovim-c410375d4d7df80577c66d1241069d7f9f62983a.zip
ci: run tests directly rather than via the Makefile
Since the Makefile is not used to build, running the tests via the Makefile causes cmake to reconfigure and revert the release build back to debug.
-rw-r--r--.github/workflows/test.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 106f77ea00..c7802d2210 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -159,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 ${{ matrix.test }}
+ run: make -C test/old/testdir NVIM_PRG=$(realpath build)/bin/nvim
+
+ - if: ${{ matrix.test != 'oldtest' }}
+ name: ${{ matrix.test }}
+ timeout-minutes: 20
+ run: cmake --build build --target ${{ matrix.test }}
- name: Install
run: |