Skip to content

liboctave-dev to octave-dev #22

liboctave-dev to octave-dev

liboctave-dev to octave-dev #22

Workflow file for this run

name: CI
# controls when action will run
on:
# triggers workflow on push events
push:
# allows workflow to be triggered manually from Actions tab
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
ipopt: [false, true]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Octave
if: matrix.ipopt == false
uses: ./.
- name: Install Octave (with IPOPT libs)
if: matrix.ipopt == true
uses: ./.
with:
ipopt-libs: true
- name: Octave ${{ env.ML_VER }} Installed
run: $ML_CMD ver
- name: IPOPT libs not installed
if: matrix.ipopt == false
run: |
[ ! -f /usr/lib/libipopt.a ] || exit 17
- name: IPOPT libs installed
if: matrix.ipopt == true
run: |
find /usr/lib -name '*ipopt*' -print
[ -f /usr/lib/libipopt.a ] || exit 2