Skip to content

Commit 0334b28

Browse files
committed
More CI configurations
1 parent f011d91 commit 0334b28

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.github/workflows/build.yaml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,45 @@ on: [pull_request, push]
44
jobs:
55
ubuntu:
66
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
target: [all, no_gui]
12+
compiler: [g++, clang++]
13+
14+
name: linux-${{ matrix.target }}-${{ matrix.compiler }}
15+
716
steps:
817
- name: Checkout
918
uses: actions/checkout@v2
1019
with:
1120
submodules: true
1221

13-
- name: Install dependencies
22+
- name: Prepare system
1423
run: |
1524
sudo sed -i 's/azure\.//' /etc/apt/sources.list
1625
sudo apt-get update
17-
sudo apt-get install -y libasound2-dev qtbase5-dev libqwt-qt5-dev
26+
27+
- name: Install base dependencies
28+
run: |
29+
sudo apt-get install -y libasound2-dev
30+
31+
- name: Install ui dependencies
32+
if: ${{ matrix.target == 'all' }}
33+
run: |
34+
sudo apt-get install -y qtbase5-dev libqwt-qt5-dev
1835
1936
- name: Build
20-
run: make
37+
env:
38+
CXX: ${{ matrix.compiler }}
39+
LD: ${{ matrix.compiler }}
40+
CXXFLAGS: -Werror
41+
run: make ${{ matrix.target }}
2142

22-
- name: Run help
43+
- name: Check cli
2344
run: ./bin/signal-estimator -h
45+
46+
- name: Check ui
47+
if: ${{ matrix.target == 'all' }}
48+
run: test -e ./bin/signal-estimator-gui

0 commit comments

Comments
 (0)