-
Notifications
You must be signed in to change notification settings - Fork 17
113 lines (111 loc) · 4.65 KB
/
Copy pathbat.yml
File metadata and controls
113 lines (111 loc) · 4.65 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Build and Test
on: [push]
permissions:
contents: read
jobs:
bat:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Perform npm tasks
run: npm run ci
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: built-action
path: |
**/*
!node_modules/
integ:
needs: bat
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
release: latest
products: Symbolic_Math_Toolbox
check-matlab: matlabVer = ver('matlab'); assert(~isempty(matlabVer));
check-toolbox: symbolicVer = ver('symbolic'); assert(~isempty(symbolicVer));
- os: ubuntu-latest
release: latest-including-prerelease
products: Symbolic_Math_Toolbox
check-matlab: matlabVer = ver('matlab'); assert(~isempty(matlabVer));
check-toolbox: symbolicVer = ver('symbolic'); assert(~isempty(symbolicVer));
- os: ubuntu-22.04
release: R2021bU2
products: |
MATLAB
Symbolic_Math_Toolbox
check-matlab: matlabVer = ver('matlab'); assert(strcmp(matlabVer.Release,'(R2021b)'));
check-toolbox: symbolicVer = ver('symbolic'); assert(strcmp(symbolicVer.Release,'(R2021b)'));
- os: windows-latest
release: latest
products: Symbolic_Math_Toolbox
check-matlab: matlabVer = ver('matlab'); assert(~isempty(matlabVer));
check-toolbox: symbolicVer = ver('symbolic'); assert(~isempty(symbolicVer));
# Added pauses in the check commands on macos until g3258674 is fixed
- os: macos-latest
release: latest
products: Symbolic_Math_Toolbox
check-matlab: pause(10); matlabVer = ver('matlab'); assert(~isempty(matlabVer));
check-toolbox: pause(10); symbolicVer = ver('symbolic'); assert(~isempty(symbolicVer));
- os: macos-14
release: latest
products: Symbolic_Math_Toolbox
check-matlab: pause(10); matlabVer = ver('matlab'); assert(~isempty(matlabVer));
check-toolbox: pause(10); symbolicVer = ver('symbolic'); assert(~isempty(symbolicVer));
- os: macos-14
release: R2023a
products: Symbolic_Math_Toolbox
check-matlab: matlabVer = ver('matlab'); assert(strcmp(matlabVer.Release,'(R2023a)'));
check-toolbox: symbolicVer = ver('symbolic'); assert(strcmp(symbolicVer.Release,'(R2023a)'));
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: built-action
- name: Install selected products
id: setup_matlab
uses: ./
with:
release: ${{ matrix.release }}
products: ${{ matrix.products }}
- name: Check matlabroot output is set
run: 'if [[ "${{ steps.setup_matlab.outputs.matlabroot }}" != *"MATLAB"* ]]; then exit 1; fi'
shell: bash
- name: Check MATLAB version
uses: matlab-actions/run-command@bcd446a219949c24051c1d04a4b4e0274c42f23b # v3.2.0
with:
command: "${{ matrix.check-matlab }}"
- name: Check toolbox version
uses: matlab-actions/run-command@bcd446a219949c24051c1d04a4b4e0274c42f23b # v3.2.0
with:
command: "${{ matrix.check-toolbox }}"
- name: Check NoOp on 2nd install
uses: ./
with:
release: ${{ matrix.release }}
products: ${{ matrix.products }}
- name: Install additional products
if: matrix.os != 'windows-latest'
uses: ./
with:
release: ${{ matrix.release }}
products: Image_Processing_Toolbox
- name: Check additional product was installed
if: matrix.os != 'windows-latest'
uses: matlab-actions/run-command@bcd446a219949c24051c1d04a4b4e0274c42f23b # v3.2.0
with:
command: assert(any(strcmp({ver().Name},'Image Processing Toolbox')))
- name: Call setup MATLAB again with different release # should not error as in issue 130
uses: ./
with:
release: R2023b
- name: Check MATLAB version
uses: matlab-actions/run-command@bcd446a219949c24051c1d04a4b4e0274c42f23b # v3.2.0
with:
command: matlabVer = ver('matlab'); assert(strcmp(matlabVer.Release,'(R2023b)'));