From c410375d4d7df80577c66d1241069d7f9f62983a Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 27 Nov 2024 07:55:55 -0500 Subject: [PATCH] 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. --- .github/workflows/test.yml | 10 ++++++++-- 1 file 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: |