-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.17 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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, macos-12, macos-13, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Octave (Linux)
if: startsWith(matrix.os, 'ubuntu')
uses: MATPOWER/action-install-octave-linux@v1
- name: Install Octave (macOS)
if: startsWith(matrix.os, 'macos')
uses: MATPOWER/action-install-octave-macos@v1
- name: Octave ${{ env.ML_VER }} Installed
run: $ML_CMD ver
- name: Install OSQP interface for Octave
uses: ./.
- name: Test OSQP availability, print version number
run: |
export OSQP_TEST_PATH=${GITHUB_WORKSPACE}/.github/osqp
env $ML_PATHVAR=$OSQP_TEST_PATH $ML_CMD "if ~have_feature_osqp(), exit(1); end"
env $ML_PATHVAR=$OSQP_TEST_PATH $ML_CMD "[~, vstr] = have_feature_osqp(); fprintf('Version %s\n', vstr);"
ls -al $OSQP_PATH