push-matrix.yml macos-latest #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: push-matrix | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} ${{ matrix.qt-version }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- name: "Ubuntu latest GCC" | |
os: ubuntu-latest | |
cc: "gcc" | |
cxx: "g++" | |
qmakespec: "linux-g++" | |
- name: "Ubuntu latest Clang" | |
os: ubuntu-latest | |
cc: "clang" | |
cxx: "clang++" | |
qmakespec: "linux-clang" | |
- name: "macOS latest" | |
os: macos-latest | |
cc: "clang" | |
cxx: "clang++" | |
qmakespec: "macx-clang" | |
qt-version: ['5.15.2'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: ${{ matrix.qt-version }} | |
install-deps: 'true' | |
modules: 'qtscript' | |
- name: Versions | |
run: | | |
qmake -v | |
qmake -query QMAKE_SPEC | |
- name: Build | |
env: | |
CC: ${{ matrix.config.cc }} | |
CXX: ${{ matrix.config.cxx }} | |
QMAKESPEC: ${{ matrix.config.qmakespec }} | |
run: | | |
cd emulator | |
qmake "CONFIG+=debug" QtUkncBtl.pro | |
make |