Examples: Fix Qt widgets example #37
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: CI | ||
on: | ||
push: | ||
pull_request: | ||
branches: [main] | ||
env: | ||
BUILD_TYPE: Release | ||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: | ||
[ | ||
{ | ||
name: "Ubuntu GCC", | ||
cxx: "g++", | ||
cc: "gcc", | ||
packages: "nlohmann-json3-dev libtinyxml2-dev", | ||
os: ubuntu-latest, | ||
}, | ||
, | ||
{ | ||
name: "Ubuntu Clang", | ||
cxx: "clang++", | ||
cc: "clang", | ||
packages: "nlohmann-json3-dev libtinyxml2-dev", | ||
os: ubuntu-latest, | ||
} | ||
] | ||
continue-on-error: false | ||
runs-on: ${{ matrix.toolchain.os }} | ||
env: | ||
CC: ${{ matrix.toolchain.cc }} | ||
CXX: ${{ matrix.toolchain.cxx }} | ||
name: "${{ matrix.toolchain.name }}" | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Install packages (via apt) | ||
if: runner.os == 'Linux' | ||
run: sudo apt install ${{ matrix.toolchain.packages }} -y | ||
- name: Configure | ||
run: cmake -Bbuild -GNinja -DCPPPROPERTIES_BUILD_EXAMPLES=ON -DCPPPROPERTIES_BUILD_TESTS=ON | ||
- name: Build | ||
run: cmake --build build | ||
- name: Run tests | ||
run: ./build/test/tests |