1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-16 03:44:56 +02:00
antelope-keygen/.github/workflows/ci.yml

69 lines
2 KiB
YAML

name: CI
on:
push:
branches:
- '*'
- '*/*'
- '!master'
jobs:
compile:
strategy:
matrix:
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ]
build: [ cli, cli-mt, cli-ansi, cli-ansi-mt, gui, gui-mt ]
include:
- build: cli
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=OFF -DUSE_THREADS=OFF
- build: cli-mt
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=OFF -DUSE_THREADS=ON
- build: cli-ansi
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=ON -DUSE_THREADS=OFF
- build: cli-ansi-mt
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=ON -DUSE_THREADS=ON
- build: gui
cmake-opts: -DCOMPONENT_CLI=OFF -DCOMPONENT_GUI=ON -DUSE_THREADS=OFF
- build: gui-mt
cmake-opts: -DCOMPONENT_CLI=OFF -DCOMPONENT_GUI=ON -DUSE_THREADS=ON
name: ${{matrix.os}} (${{matrix.build}})
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: OpenSSL OSX
if: runner.os == 'macOS'
shell: bash
run: brew install openssl
- name: Qt - Ubuntu
if: startsWith(matrix.build, 'gui') && runner.os == 'Linux'
shell: bash
run: sudo apt-get install qt5-default
- name: Qt - Windows/Mac
if: startsWith(matrix.build, 'gui') && runner.os != 'Linux'
uses: jurplel/install-qt-action@v2
with:
version: '5.9'
- name: Configure
shell: bash
run: |
OPTS="${{matrix.cmake-opts}}"
if [ "$RUNNER_OS" == "macOS" ]; then
OPTS="-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 ${OPTS}"
fi
cmake ${OPTS} -B build
- name: Build
shell: bash
run: cmake --build build
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: ${{matrix.os}}_${{matrix.build}}-build
path: build