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

46 lines
996 B
YAML

name: CI
on:
push:
branches:
- '*'
- '*/*'
- '!master'
jobs:
compile:
strategy:
matrix:
os: [ ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest ]
build-opts: [ "-DUSE_THREADS=ON", "-DUSE_THREADS=OFF" ]
name: ${{matrix.os}} (${{matrix.build-opts}})
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: Dependancies
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install openssl
fi
- name: Configure
shell: bash
run: |
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
- name: Build
shell: bash
run: cmake --build build
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: ${{matrix.os}}_${{matrix.build-opts}}-build
path: build