mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +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:
parent
0d44bbc8f6
commit
48eb716165
1 changed files with 13 additions and 10 deletions
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
|
|
@ -12,14 +12,17 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ]
|
||||
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
|
||||
]
|
||||
build: [ cli-force-ansi-on, cli-force-ansi-off, gui ]
|
||||
include:
|
||||
- build: cli-force-ansi-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}}
|
||||
|
||||
steps:
|
||||
|
|
@ -33,12 +36,12 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Qt - Ubuntu
|
||||
if: contains(matrix.build-opts, '-DBUILD_COMPONENT_GUI=ON') && runner.os == 'Linux'
|
||||
if: matrix.build == 'gui' && 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'
|
||||
if: matrix.build == 'gui' && runner.os != 'Linux'
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: '5.9'
|
||||
|
|
@ -49,7 +52,7 @@ jobs:
|
|||
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||
SSL_OPTS="-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1"
|
||||
fi
|
||||
cmake ${SSL_OPTS} ${{matrix.build-opts}} -B build
|
||||
cmake ${SSL_OPTS} ${{matrix.cmake-opts}} -B build
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
|
|
@ -58,5 +61,5 @@ jobs:
|
|||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ${{matrix.os}}_${{matrix.build-opts}}-build
|
||||
name: ${{matrix.os}}_${{matrix.build}}-build
|
||||
path: build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue