Skip to content

Commit e846591

Browse files
committed
Maintenance cycle R2024b
1 parent 1c736f8 commit e846591

File tree

399 files changed

+1260
-486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

399 files changed

+1260
-486
lines changed

.github/workflows/ci.yml

Lines changed: 67 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -8,93 +8,103 @@ on:
88
branches: [ release ]
99
workflow_dispatch:
1010

11-
jobs:
11+
# Add permission to write GitHub pages
12+
permissions:
13+
contents: write
14+
pages: write
15+
id-token: write
1216

13-
run-all-tests:
17+
jobs:
18+
test:
1419
strategy:
1520
fail-fast: false
1621
matrix:
17-
version: [R2023a,R2023b,R2024a]
18-
os: [ubuntu-latest, windows-latest, macos-latest]
19-
runs-on: ${{ matrix.os }}
22+
MATLABVersion: [R2024a,R2024b]
23+
runs-on: ubuntu-latest
2024
steps:
21-
- name: Checks-out your repository
22-
uses: actions/checkout@v3
23-
# - name: Start display server
24-
# if: ${{ always() }}
25-
# run: |
26-
# sudo apt-get install xvfb
27-
# Xvfb :99 &
28-
# echo "DISPLAY=:99" >> $GITHUB_ENV
25+
# Checks-out your repository
26+
- uses: actions/checkout@v4
27+
28+
# Sets up a display server
29+
- name: Start display server
30+
if: ${{ always() }}
31+
run: |
32+
sudo apt-get install xvfb
33+
Xvfb :99 &
34+
echo "DISPLAY=:99" >> $GITHUB_ENV
35+
36+
# Sets up MATLAB
2937
- name: Setup MATLAB
3038
uses: matlab-actions/setup-matlab@v2
3139
with:
32-
release: ${{ matrix.version }}
40+
release: ${{ matrix.MATLABVersion }}
3341
products: Simulink Simscape Symbolic_Math_Toolbox Mapping_Toolbox Simscape_Fluids
34-
- name: Run all the tests
42+
43+
# Run all the tests
44+
- name: Run SmokeTests
3545
uses: matlab-actions/run-command@v2
3646
with:
3747
command: openProject(pwd); RunAllTests;
38-
- name: Upload the test results as artifact
39-
uses: actions/upload-artifact@v3.1.3
40-
with:
41-
name: TestResults
42-
path: ./SoftwareTests/TestResults_*.txt
4348

44-
matlab-online-basic:
45-
name: Run test with MATLAB Online basic
46-
strategy:
47-
fail-fast: false
48-
runs-on: ubuntu-latest
49-
steps:
50-
- name: Checks-out your repository
51-
uses: actions/checkout@v3
52-
# - name: Start display server
53-
# run: |
54-
# sudo apt-get install xvfb
55-
# Xvfb :99 &
56-
# echo "DISPLAY=:99" >> $GITHUB_ENV
57-
- name: Setup MATLAB
58-
uses: matlab-actions/setup-matlab@v2
59-
with:
60-
release: latest
61-
products: Simulink Control_System_Toolbox Curve_Fitting_Toolbox Deep_Learning_Toolbox Image_Processing_Toolbox Optimization_Toolbox Signal_Processing_Toolbox Statistics_and_Machine_Learning_Toolbox Symbolic_Math_Toolbox Text_Analytics_Toolbox
62-
- name: Run All Tests
63-
uses: matlab-actions/run-command@v2
64-
continue-on-error: true
49+
# Upload the test results as artifact
50+
- name: Upload TestResults
51+
if: ${{ always() }}
52+
uses: actions/upload-artifact@v4
6553
with:
66-
command: openProject(pwd); RunAllTests;
67-
startup-options: -webui
54+
name: TestResults_${{ matrix.MATLABVersion }}
55+
path: ./public/*
56+
overwrite: true
6857

69-
create-badge:
58+
badge:
7059
if: ${{ always() }}
71-
needs: [run-all-tests]
60+
needs: [test]
7261
strategy:
7362
fail-fast: false
7463
runs-on: ubuntu-latest
7564
steps:
76-
- name: Checks-out your repository
77-
uses: actions/checkout@v3
65+
66+
# Checks-out your repository
67+
- uses: actions/checkout@v4
68+
69+
# Sets up R2023b
7870
- name: Setup MATLAB
7971
uses: matlab-actions/setup-matlab@v2
8072
with:
81-
release: latest
82-
- name: Download TestResults
83-
uses: actions/download-artifact@v2.1.1
73+
release: R2024b
74+
75+
# Download the test results from artifact
76+
- name: Download All TestResults
77+
uses: actions/download-artifact@v4
8478
with:
85-
name: TestResults
86-
path: ./SoftwareTests/
87-
- name: Run CreateBadge
79+
path: public
80+
pattern: TestResults_*
81+
merge-multiple: true
82+
83+
# Create the test results badge
84+
- name: Run PostSmokeTest
8885
uses: matlab-actions/run-command@v2
8986
with:
90-
command: openProject(pwd); CreateBadge;
91-
- name: Commit badges
87+
command: openProject(pwd); PostSmokeTest;
88+
89+
# Deploy reports to GitHub pages
90+
- name: Setup Pages
91+
uses: actions/configure-pages@v5
92+
- name: Upload pages artifact
93+
uses: actions/upload-pages-artifact@v3
94+
with:
95+
path: public
96+
- name: Deploy to GitHub Pages
97+
id: deployment
98+
uses: actions/deploy-pages@v4
99+
100+
# Commit the JSON for the MATLAB releases badge
101+
- name: Commit changed files
92102
continue-on-error: true
93103
run: |
94104
git config user.name "${{ github.workflow }} by ${{ github.actor }}"
95105
git config user.email "<>"
96106
git pull
97-
git add Images/Badge*.json
98-
git commit Images/Badge*.json -m "Update CI badges ${{ github.ref_name }}"
107+
git add Images/TestedWith.json
108+
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
99109
git fetch
100110
git push

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,5 @@ codegen/
4747
# Project settings
4848
Utilities/ProjectSettings.mat
4949

50-
# Test results
51-
SoftwareTests/TestResults_*
52-
53-
# GitLab page fodler
54-
public/
50+
# GitLab page folder
51+
public/

Images/image1.png

17.3 KB
Loading

Images/image18.png

29.8 KB
Loading

Images/image2.svg

Lines changed: 4 additions & 0 deletions
Loading
Binary file not shown.
65.2 KB
Binary file not shown.
Binary file not shown.
71.5 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)