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.
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -208,11 +208,13 @@ jobs:
|
|||||||
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_ERROR_CXXFLAGS"
|
make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_ERROR_CXXFLAGS"
|
||||||
|
|
||||||
- name: Building tests
|
- name: Building tests
|
||||||
|
if: matrix.skip_testing != true
|
||||||
|
working-directory: tests
|
||||||
run: |
|
run: |
|
||||||
if [ !${{ matrix.skip_gui }} ]; then
|
if [ !${{ matrix.skip_gui }} ]; then
|
||||||
make -C tests $wxBUILD_ARGS failtest
|
make $wxBUILD_ARGS failtest
|
||||||
fi
|
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
|
- name: Testing
|
||||||
if: matrix.skip_testing != true
|
if: matrix.skip_testing != true
|
||||||
|
Reference in New Issue
Block a user