wip: auto tests
This commit is contained in:
parent
3a2115b309
commit
12d51b68fc
|
|
@ -59,11 +59,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} "QT_TOOL_PATH=${{steps.qt.outputs.qtdir}}/Tools" nut.pro
|
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} "QT_TOOL_PATH=${{steps.qt.outputs.qtdir}}/Tools" nut.pro
|
||||||
${{steps.qt.outputs.make}} qmake_all
|
${{steps.qt.outputs.make}} qmake_all
|
||||||
- name: make lib
|
- name: make module
|
||||||
run: |
|
run: |
|
||||||
${{steps.qt.outputs.make}}
|
${{steps.qt.outputs.make}}
|
||||||
${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
|
${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
|
||||||
- name: upload lib to releases
|
- name: make tests
|
||||||
|
if: steps.qt.outputs.tests == 'true' && !contains(matrix.platform, 'mingw')
|
||||||
|
run: |
|
||||||
|
${{steps.qt.outputs.make}} all
|
||||||
|
${{steps.qt.outputs.make}} ${{steps.qt.outputs.testflags}} run-tests
|
||||||
|
- name: upload module to releases
|
||||||
uses: Skycoder42/action-upload-release@master
|
uses: Skycoder42/action-upload-release@master
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,6 @@ SUBDIRS += \
|
||||||
tst_json \
|
tst_json \
|
||||||
tst_datetime
|
tst_datetime
|
||||||
|
|
||||||
|
cmake.CONFIG += no_run-tests_target
|
||||||
|
prepareRecursiveTarget(run-tests)
|
||||||
|
QMAKE_EXTRA_TARGETS += run-tests
|
||||||
Loading…
Reference in New Issue