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

64 lines
1.6 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-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}})
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: matrix.build == 'gui' && runner.os == 'Linux'
shell: bash
run: sudo apt-get install qt5-default
- name: Qt - Windows/Mac
if: 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