Specify platform-dependend make

This commit is contained in:
Hennadii Chernyshchyk 2021-10-03 12:18:52 +03:00
parent 307ffb2811
commit e17a3c2db8
No known key found for this signature in database
GPG Key ID: 24623302B8395825

View File

@ -17,14 +17,16 @@ jobs:
- qt_version: 6.0.0 - qt_version: 6.0.0
additional_arguments: -D QT_DEFAULT_MAJOR_VERSION=6 additional_arguments: -D QT_DEFAULT_MAJOR_VERSION=6
- platform: ubuntu-20.04 - platform: ubuntu-20.04
make: make
CXXFLAGS: -Wall -Wextra -pedantic -Werror CXXFLAGS: -Wall -Wextra -pedantic -Werror
MAKEFLAGS: -j2 MAKEFLAGS: -j2
- platform: macos-latest - platform: macos-latest
make: make
CXXFLAGS: -Wall -Wextra -pedantic -Werror CXXFLAGS: -Wall -Wextra -pedantic -Werror
MAKEFLAGS: -j3 MAKEFLAGS: -j3
- platform: windows-latest - platform: windows-latest
CXXFLAGS: /W4 /WX make: nmake
MAKEFLAGS: /m CXXFLAGS: /W4 /WX /MP
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
env: env:
@ -70,16 +72,16 @@ jobs:
working-directory: examples/basic/ working-directory: examples/basic/
run: | run: |
qmake qmake
make ${{ matrix.make }}
- name: Build calculator example QMake - name: Build calculator example QMake
working-directory: examples/calculator/ working-directory: examples/calculator/
run: | run: |
qmake qmake
make ${{ matrix.make }}
- name: Build sending_arguments example with QMake - name: Build sending_arguments example with QMake
working-directory: examples/sending_arguments/ working-directory: examples/sending_arguments/
run: | run: |
qmake qmake
make ${{ matrix.make }}