1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 11:44:55 +02:00
libantelope/.github/workflows/CI.yml

47 lines
955 B
YAML

name: CI
on:
push:
branches:
- '*'
- '*/*'
- '!master'
jobs:
compile:
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest ]
name: ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: Dependancies (mac)
if: runner.os == 'macOS'
shell: bash
run: brew install openssl@1.1
- name: Configure
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
SSL_OPTS="-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1"
fi
cmake -DENABLE_TESTING=ON ${SSL_OPTS} -B build
- name: Build
shell: bash
run: cmake --build build
- name: Test
shell: bash
run: ctest --verbose --test-dir build -C Debug
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: ${{matrix.os}}-build
path: build