-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
- name: Configure MATLAB
uses: ./.
- name: MATLAB ${{ env.ML_VER }} Installed
run: $ML_CMD ver
- name: Configure MATLAB w/JVM
uses: ./.
with:
nojvm: false
- name: MATLAB ${{ env.ML_VER }} Installed
run: $ML_CMD ver
- name: Configure MATLAB w/OSQP
uses: ./.
with:
osqp: true
- name: MATLAB ${{ env.ML_VER }} with OSQP Installed
run: $ML_CMD "fprintf('OSQP Version %s installed', osqp().version)"
- name: Configure MATLAB w/IPOPT
uses: ./.
with:
ipopt: true
os: ${{ matrix.os }}
- name: MATLAB ${{ env.ML_VER }} with IPOPT Installed
run: |
export IPOPT_TEST_PATH=${GITHUB_WORKSPACE}/.github/ipopt
ls -al $IPOPT_PATH
env $ML_PATHVAR=$IPOPT_TEST_PATH $ML_CMD "qps_ipopt([],[1; 1],[1 1],[2],[2],[1; 1],[1; 1],[1; 1],struct('verbose', 2));"
env $ML_PATHVAR=$IPOPT_TEST_PATH $ML_CMD "if ~have_feature_ipopt(), exit(1); end"