1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-07-04 12:03:41 +02:00

.github/workflows/ci.yml: add abit more human friendly names than matrix.build-opts. and have the actual cmake flags as matrix includes.

This commit is contained in:
Henrik Hautakoski 2020-04-10 17:44:19 +02:00
parent 0d44bbc8f6
commit 48eb716165

View file

@ -12,14 +12,17 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ] os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ]
build-opts: [ build: [ cli-force-ansi-on, cli-force-ansi-off, gui ]
-DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=ON, include:
-DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=OFF, - build: cli-force-ansi-on
-DBUILD_COMPONENT_CLI=OFF -DBUILD_COMPONENT_GUI=ON cmake-opts: -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=ON
] - build: cli-force-ansi-off
cmake-opts: -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=ON
- build: gui
cmake-opts: -DBUILD_COMPONENT_CLI=OFF -DBUILD_COMPONENT_GUI=ON
name: ${{matrix.os}} (${{matrix.build-opts}}) name: ${{matrix.os}} (${{matrix.build}})
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
steps: steps:
@ -33,12 +36,12 @@ jobs:
fi fi
- name: Qt - Ubuntu - name: Qt - Ubuntu
if: contains(matrix.build-opts, '-DBUILD_COMPONENT_GUI=ON') && runner.os == 'Linux' if: matrix.build == 'gui' && runner.os == 'Linux'
shell: bash shell: bash
run: sudo apt-get install qt5-default run: sudo apt-get install qt5-default
- name: Qt - Windows/Mac - name: Qt - Windows/Mac
if: contains(matrix.build-opts, '-DBUILD_COMPONENT_GUI=ON') && runner.os != 'Linux' if: matrix.build == 'gui' && runner.os != 'Linux'
uses: jurplel/install-qt-action@v2 uses: jurplel/install-qt-action@v2
with: with:
version: '5.9' version: '5.9'
@ -49,7 +52,7 @@ jobs:
if [ "$RUNNER_OS" == "macOS" ]; then if [ "$RUNNER_OS" == "macOS" ]; then
SSL_OPTS="-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1" SSL_OPTS="-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1"
fi fi
cmake ${SSL_OPTS} ${{matrix.build-opts}} -B build cmake ${SSL_OPTS} ${{matrix.cmake-opts}} -B build
- name: Build - name: Build
shell: bash shell: bash
@ -58,5 +61,5 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: ${{matrix.os}}_${{matrix.build-opts}}-build name: ${{matrix.os}}_${{matrix.build}}-build
path: build path: build