name: CI on: push: branches: - '*' - '*/*' - '!master' jobs: compile: strategy: fail-fast: false matrix: os: [ ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest ] ec_lib: [ openssl, libsecp256k1 ] name: ${{matrix.os}} - ${{matrix.ec_lib}} 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 -DBUILD_TESTING=ON ${SSL_OPTS} -DEC_LIB=${{matrix.ec_lib}} -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