-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (29 loc) · 975 Bytes
/
Copy pathworkflow.yml
File metadata and controls
29 lines (29 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Main workflow
on: [push]
jobs:
test:
name: Test ${{ matrix.gui }} build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
gui: [gtk, qt]
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 1
- name: Setup Qt on Linux
run: sudo apt-get update; sudo apt-get install qtbase5-dev qt5-qmake
if: matrix.os == 'ubuntu-latest' && matrix.gui == 'qt'
- name: Setup Gtk on Linux
run: sudo apt-get update; sudo apt-get install libgtk-3-dev
if: matrix.os == 'ubuntu-latest' && matrix.gui == 'gtk'
- name: Run cmake Qt
run: mkdir _build && cd _build && cmake -DCONFIG_QT=ON -DCONFIG_TINY=ON ..
if: matrix.gui == 'qt'
- name: Run cmake GTK
run: mkdir _build && cd _build && cmake -DCONFIG_GTK=ON -DCONFIG_TINY=ON ..
if: matrix.gui == 'gtk'
- name: Run make
run: cd _build && make VERBOSE=1