2020-01-03 18:11:40 +08:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2020-01-03 18:35:41 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
qt_version: [5.11, 5.12, 5.13, 5.14]
|
|
|
|
|
2020-01-03 18:11:40 +08:00
|
|
|
runs-on: ubuntu-latest
|
2020-01-03 18:26:13 +08:00
|
|
|
|
2020-01-03 18:11:40 +08:00
|
|
|
steps:
|
2020-01-03 18:18:30 +08:00
|
|
|
- uses: actions/checkout@v2
|
2020-01-03 18:26:13 +08:00
|
|
|
|
2020-01-03 18:18:30 +08:00
|
|
|
- name: Install Qt
|
|
|
|
uses: jurplel/install-qt-action@v2.2.1
|
|
|
|
with:
|
2020-01-03 18:35:41 +08:00
|
|
|
version: ${{ matrix.qt_version }}
|
2020-01-03 18:26:13 +08:00
|
|
|
|
2020-01-03 18:11:40 +08:00
|
|
|
- name: cmake
|
|
|
|
run: cmake .
|
2020-01-03 18:26:13 +08:00
|
|
|
|
2020-01-03 18:11:40 +08:00
|
|
|
- name: make
|
|
|
|
run: make
|
2020-01-03 18:26:13 +08:00
|
|
|
|
|
|
|
- name: Build example - basic (cmake)
|
2020-01-03 18:35:41 +08:00
|
|
|
run: cmake . && make
|
2020-01-03 18:26:13 +08:00
|
|
|
working-directory: examples/basic/
|
|
|
|
|
|
|
|
- name: Build example - calculator (cmake)
|
2020-01-03 18:35:41 +08:00
|
|
|
run: cmake . && make
|
2020-01-03 18:26:13 +08:00
|
|
|
working-directory: examples/calculator/
|
|
|
|
|
|
|
|
- name: Build example - sending_arguments (cmake)
|
2020-01-03 18:35:41 +08:00
|
|
|
run: cmake . && make
|
2020-01-03 18:26:13 +08:00
|
|
|
working-directory: examples/sending_arguments/
|