-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (60 loc) · 2.09 KB
/
run-matlab-tests.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
60
61
name: Generate Test and Coverage Artifacts on GitHub-Hosted Runner
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '24 16 * * 2' # schedule a weekly build to keep caches warm
jobs:
my-job:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
name: Build Toolbox
runs-on: ${{ matrix.os }}
steps:
- name: Support long paths
if: ${{ matrix.os == 'windows-latest' }}
run: git config --system core.longpaths true
- name: Check out repository
uses: actions/checkout@v4
with:
lfs: true
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
cache: true
release: R2024b
products: |
Deep_Learning_Toolbox
Computer_Vision_Toolbox
Signal_Processing_Toolbox
Image_Processing_Toolbox
Statistics_and_Machine_Learning_Toolbox
MATLAB_Test
Deep_Learning_Toolbox_Model_for_Xception_Network
Deep_Learning_Toolbox_Model_for_ResNet-18_Network
Deep_Learning_Toolbox_Model_for_Inception-ResNet-v2_Network
Deep_Learning_Toolbox_Model_for_MobileNet-v2_Network
Deep_Learning_Toolbox_Model_for_ResNet-50_Network
Deep_Learning_Toolbox_Model_for_VGG-16_Network
Deep_Learning_Toolbox_Model_for_VGG-19_Network
- name: Run MATLAB build
uses: matlab-actions/run-build@v2
- name: Upload Test and Coverage Results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} Results
path: test-results
- name: Upload Code Analysis Results
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
name: Results
path: analysis-results
- name: Upload Toolbox (mltbx)
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
name: Tool Validation Kit
path: release/Tool Validation Kit.mltbx