-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Update CI workflows and the tests that will be run by them with the results posted to Pages 2) Update the project and the startup app 3) Add solutions to the InstructorResources folder 4) Remove OldVersions and clarify support for R2024a, R2024b, and MATLAB Online 5) Update the README.mlx and README.md with better image names and MATLAB Online links 6) Remove buildutils and reports as part of the prior CI workflow
- Loading branch information
Showing
75 changed files
with
937 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
name: MATLAB Build | ||
|
||
# Controls when the action will run. | ||
on: | ||
push: | ||
branches: [ release ] | ||
pull_request: | ||
branches: [ release ] | ||
workflow_dispatch: | ||
|
||
# Add permission to write GitHub pages | ||
permissions: | ||
contents: write | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
MATLABVersion: [R2024a,R2024b] | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository | ||
- uses: actions/checkout@v4 | ||
|
||
# Sets up a display server | ||
- name: Start display server | ||
if: ${{ always() }} | ||
run: | | ||
sudo apt-get install xvfb | ||
Xvfb :99 & | ||
echo "DISPLAY=:99" >> $GITHUB_ENV | ||
# Sets up MATLAB | ||
- name: Setup MATLAB | ||
uses: matlab-actions/setup-matlab@v2 | ||
with: | ||
release: ${{ matrix.MATLABVersion }} | ||
products: > | ||
Symbolic_Math_Toolbox | ||
Image_Processing_Toolbox | ||
Statistics_and_Machine_Learning_Toolbox | ||
Deep_Learning_Toolbox | ||
# Simulink | ||
# List required products above in the format shown (and uncomment them) | ||
# List of product strings: | ||
# Simulink | ||
# Statistics_and_Machine_Learning_Toolbox | ||
# Simulink_Coder | ||
# Econometrics_Toolbox | ||
# Deep_Learning_Toolbox | ||
|
||
|
||
# Run all the tests | ||
- name: Run SmokeTests | ||
uses: matlab-actions/run-command@v2 | ||
with: | ||
command: openProject(pwd); RunAllTests; | ||
|
||
# Upload the test results as artifact | ||
- name: Upload TestResults | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: TestResults_${{ matrix.MATLABVersion }} | ||
path: ./public/* | ||
overwrite: true | ||
|
||
badge: | ||
if: ${{ always() }} | ||
needs: [test] | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Checks-out your repository | ||
- uses: actions/checkout@v4 | ||
|
||
# Sets up R2023b | ||
- name: Setup MATLAB | ||
uses: matlab-actions/setup-matlab@v2 | ||
with: | ||
release: R2024b | ||
|
||
# Download the test results from artifact | ||
- name: Download All TestResults | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: public | ||
pattern: TestResults_* | ||
merge-multiple: true | ||
|
||
# Create the test results badge | ||
- name: Run PostSmokeTest | ||
uses: matlab-actions/run-command@v2 | ||
with: | ||
command: openProject(pwd); PostSmokeTest; | ||
|
||
# Deploy reports to GitHub pages | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload pages artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: public | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
||
# Commit the JSON for the MATLAB releases badge | ||
- name: Commit changed files | ||
continue-on-error: true | ||
run: | | ||
git config user.name "${{ github.workflow }} by ${{ github.actor }}" | ||
git config user.email "<>" | ||
git pull | ||
git add Images/TestedWith.json | ||
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}" | ||
git fetch | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,6 @@ codegen/ | |
|
||
# Project settings | ||
Utilities/ProjectSettings.mat | ||
|
||
# GitLab page folder | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.