Skip to content

add test suite

add test suite #1

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libssl-dev \
libsecp256k1-dev \
libaes-siv-dev \
autoconf \
automake \
libtool \
pkg-config \
autoconf-archive
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install \
openssl \
libsecp256k1 \
libaes-siv \
autoconf \
automake \
libtool \
pkg-config \
autoconf-archive
- name: Generate build system
run: ./autogen.sh
- name: Configure (Ubuntu)
if: runner.os == 'Linux'
run: ./configure
- name: Configure (macOS)
if: runner.os == 'macOS'
run: |
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
./configure CFLAGS="-I/usr/local/opt/openssl/include" \
LDFLAGS="-L/usr/local/opt/openssl/lib"
- name: Build
run: make
- name: Run tests
run: make check