Skip to content

Commit efec170

Browse files
committed
Maintenance cycle R2024b
1 parent 95ffad6 commit efec170

File tree

66 files changed

+687
-217
lines changed

Some content is hidden

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

66 files changed

+687
-217
lines changed

.github/workflows/ci.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
name: MATLAB Build
2+
3+
# Controls when the action will run.
4+
on:
5+
push:
6+
branches: [ release ]
7+
pull_request:
8+
branches: [ release ]
9+
workflow_dispatch:
10+
11+
# Add permission to write GitHub pages
12+
permissions:
13+
contents: write
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
test:
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
MATLABVersion: [R2024a,R2024b]
23+
runs-on: ubuntu-latest
24+
steps:
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
37+
- name: Setup MATLAB
38+
uses: matlab-actions/setup-matlab@v2
39+
with:
40+
release: ${{ matrix.MATLABVersion }}
41+
products: Simulink Stateflow Symbolic_Math_Toolbox MATLAB_Support_Package_for_Arduino_Hardware Simulink_Support_Package_for_Arduino_Hardware
42+
43+
44+
# Run all the tests
45+
- name: Run SmokeTests
46+
uses: matlab-actions/run-command@v2
47+
with:
48+
command: openProject(pwd); RunAllTests;
49+
50+
# Upload the test results as artifact
51+
- name: Upload TestResults
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: TestResults_${{ matrix.MATLABVersion }}
55+
path: ./public/*
56+
overwrite: true
57+
58+
badge:
59+
if: ${{ always() }}
60+
needs: [test]
61+
strategy:
62+
fail-fast: false
63+
runs-on: ubuntu-latest
64+
steps:
65+
66+
# Checks-out your repository
67+
- uses: actions/checkout@v4
68+
69+
# Sets up R2023b
70+
- name: Setup MATLAB
71+
uses: matlab-actions/setup-matlab@v2
72+
with:
73+
release: R2024b
74+
75+
# Download the test results from artifact
76+
- name: Download All TestResults
77+
uses: actions/download-artifact@v4
78+
with:
79+
path: public
80+
pattern: TestResults_*
81+
merge-multiple: true
82+
83+
# Create the test results badge
84+
- name: Run PostSmokeTest
85+
uses: matlab-actions/run-command@v2
86+
with:
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
102+
continue-on-error: true
103+
run: |
104+
git config user.name "${{ github.workflow }} by ${{ github.actor }}"
105+
git config user.email "<>"
106+
git pull
107+
git add Images/TestedWith.json
108+
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
109+
git fetch
110+
git push

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,13 @@
2727
# Generated helpsearch folders
2828
helpsearch*/
2929

30-
<<<<<<< HEAD
3130
# Defined Simulink cache folder
3231
Utilities/SimulinkCache/*
3332

3433
# Standard code generation folders
3534
slprj/
3635
sccprj/
3736
codegen/
38-
=======
39-
# Simulink cache folder
40-
Utilities/SimulinkCache/*
4137

4238
# Code generation file
4339
*.eep
@@ -51,11 +47,5 @@ Utilities/SimulinkCache/*
5147
# Project settings
5248
Utilities/ProjectSettings.mat
5349

54-
# Report folder
55-
public/
56-
SoftwareTests/TestResults_*
57-
58-
# File created during script execution
59-
Scripts/ReactionAnalyzer.docx
60-
Images/ReactionTimeFig.fig
61-
Images/ReactionTimeImg.svg
50+
# GitLab page folder
51+
public/

.gitlab-ci.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.
3.32 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)