Skip to content

doh

doh #76

Workflow file for this run

name: Build-N-Test
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./src
steps:
- uses: actions/checkout@v4
- name: Install brew dependencies
if: runner.os == 'macOS'
run: |
# install dependencies
brew install nlopt armadillo automake autoconf
# append $PATH
# examine the path before
echo "PATH BEFORE:"
echo ${PATH}
# add to the $PATH
echo "/opt/homebrew/" >> $GITHUB_PATH
# examine the path after
echo "PATH AFTER:"
echo ${PATH}
- name: Install apt dependencies
if: runner.os == 'Linux'
run: |
# Ensure the script doesnt hang waiting for user input
export DEBIAN_FRONTEND=noninteractive
# Update system
sudo apt-get update
sudo apt-get install -y \
autotools-dev \
automake \
libtool \
liblapack-dev \
libatlas-cpp-0.6-dev \
libnlopt0 \
libnlopt-dev \
libnlopt-cxx-dev \
libarmadillo-dev
- name: autoconf
run: autoreconf -fiv
- name: configure
run: |
echo "PATH IN NEXT STEP:"
echo ${PATH}
./configure
- name: make
run: make -j
- name: make check
run: make check
- name: make installcheck
run: make installcheck