From 5f3bca00c025f26d373f606014686f22d48ba926 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 26 Jun 2021 16:16:17 +0200 Subject: [PATCH] Skip building tests too if skip_testing flag is set Currently it's only used for wxiOS build and the tests don't build there. Also set working-directory for the test building step once instead of using "make -C" option twice. --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 719d570e81..85b42a2128 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -208,11 +208,13 @@ jobs: make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_ERROR_CXXFLAGS" - name: Building tests + if: matrix.skip_testing != true + working-directory: tests run: | if [ !${{ matrix.skip_gui }} ]; then - make -C tests $wxBUILD_ARGS failtest + make $wxBUILD_ARGS failtest fi - make -k -C tests $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS" + make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS" - name: Testing if: matrix.skip_testing != true