1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-18 04:00:03 +02:00
antelope-keygen/.github/workflows/ci.yml
Henrik Hautakoski dce6f58607 Github Actions: skip building for Ubuntu 16.04
First, 16.04 only supports libssl 1.0 (officially) that links fine but will not find the library at runtime.
Second, 16.04 is old (LTS is still valid tho).

If requested, we could consider supporting it but no point going through the hassle if it has no users.
2020-04-27 12:23:08 +02:00

69 lines
2 KiB
YAML

name: CI
on:
push:
branches:
- '*'
- '*/*'
- '!master'
jobs:
compile:
strategy:
matrix:
os: [ 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.11.0'
- 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