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:
parent
a5cf7f3479
commit
5f3bca00c0
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"
|
||||
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user