SingleApplication/.github/workflows/build-cmake.yml

46 lines
957 B
YAML
Raw Normal View History

2020-01-04 01:15:33 +08:00
name: "CI: Build Test"
2020-01-03 18:11:40 +08:00
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
2020-10-18 16:47:17 +08:00
qt_version: [5.12.6, 5.13.2, 5.14.0, 5.15.0, 6.0.0]
platform: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
2020-01-03 18:11:40 +08:00
steps:
- uses: actions/checkout@v2
- name: Install Qt
2020-10-15 06:56:14 +08:00
uses: jurplel/install-qt-action@v2.9.0
with:
version: ${{ matrix.qt_version }}
2020-01-03 18:11:40 +08:00
- name: cmake
run: cmake .
- name: cmake build
run: cmake --build .
- name: Build example - basic (cmake)
working-directory: examples/basic/
run: |
cmake .
cmake --build .
- name: Build example - calculator (cmake)
working-directory: examples/calculator/
run: |
cmake .
cmake --build .
- name: Build example - sending_arguments (cmake)
working-directory: examples/sending_arguments/
run: |
cmake .
cmake --build .