From 0d44bbc8f65a8cae78ae505a2fd4424ec8039942 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 10 Apr 2020 10:49:26 +0200 Subject: [PATCH] .github/workflows/ci.yml: Build GUI --- .github/workflows/ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef1fafb..6f4e4a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,12 @@ jobs: strategy: matrix: os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ] - build-opts: [ "-DFORCE_ANSI=ON", "-DFORCE_ANSI=OFF" ] + build-opts: [ + -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=ON, + -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=OFF, + -DBUILD_COMPONENT_CLI=OFF -DBUILD_COMPONENT_GUI=ON + ] + name: ${{matrix.os}} (${{matrix.build-opts}}) runs-on: ${{matrix.os}} @@ -20,13 +25,24 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Dependancies + - name: OpenSSL shell: bash run: | if [ "$RUNNER_OS" == "macOS" ]; then brew install openssl fi + - name: Qt - Ubuntu + if: contains(matrix.build-opts, '-DBUILD_COMPONENT_GUI=ON') && runner.os == 'Linux' + shell: bash + run: sudo apt-get install qt5-default + + - name: Qt - Windows/Mac + if: contains(matrix.build-opts, '-DBUILD_COMPONENT_GUI=ON') && runner.os != 'Linux' + uses: jurplel/install-qt-action@v2 + with: + version: '5.9' + - name: Configure shell: bash run: |