Skip to content

Commit 312952d

Browse files
committed
Modify CI
1 parent b2493ec commit 312952d

17 files changed

+171
-42
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
MATLABVersion: [R2023b,R2024a]
16+
MATLABVersion: [R2024a,R2024b]
1717
runs-on: ubuntu-latest
1818
steps:
1919
# Checks-out your repository
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121

2222
# Sets up a display server
2323
- name: Start display server
@@ -42,10 +42,11 @@ jobs:
4242

4343
# Upload the test results as artifact
4444
- name: Upload TestResults
45-
uses: actions/upload-artifact@v3.1.3
45+
uses: actions/upload-artifact@v4
4646
with:
47-
name: TestResults
47+
name: TestResults_${{ matrix.MATLABVersion }}
4848
path: ./SoftwareTests/TestResults_${{ matrix.MATLABVersion }}.txt
49+
overwrite: true
4950

5051
badge:
5152
if: ${{ always() }}
@@ -56,24 +57,25 @@ jobs:
5657
steps:
5758

5859
# Checks-out your repository
59-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6061

61-
# Sets up R2023b
62+
# Sets up R2024b
6263
- name: Setup MATLAB
63-
uses: matlab-actions/setup-matlab@v1
64+
uses: matlab-actions/setup-matlab@v2
6465
with:
65-
release: R2023b
66+
release: R2024b
6667

6768
# Download the test results from artifact
68-
- name: Download TestResults
69-
uses: actions/download-artifact@v2.1.1
69+
- name: Download All TestResults
70+
uses: actions/download-artifact@v4
7071
with:
71-
name: TestResults
72-
path: ./SoftwareTests/
72+
path: SoftwareTests
73+
pattern: TestResults_*
74+
merge-multiple: true
7375

7476
# Create the test results badge
7577
- name: Run CreateBadge
76-
uses: matlab-actions/run-command@v1
78+
uses: matlab-actions/run-command@v2
7779
with:
7880
command: openProject(pwd); CreateBadge;
7981

249 KB
Binary file not shown.
426 KB
Binary file not shown.
1020 KB
Binary file not shown.

Scripts/BuildFilteringApp.mlx

-112 Bytes
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
% Post-run script for AnalogToDigitalConversion.mlx
2+
% ---- Pre-run commands -----
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
% Post-run script for BuildFilteringApp.mlx
2+
% ---- Pre-run commands -----
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
% Post-run script for FilterDesign.mlx
2+
% ---- Pre-run commands -----
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
% Post-run script for FilteringIntro.mlx
2+
% ---- Pre-run commands -----
3+

SoftwareTests/InitFiles/InitAnalogToDigitalConversion.m renamed to SoftwareTests/PreFiles/PreAnalogToDigitalConversion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
audioread = @(x) NewAudioRead(x);
88
audioplayer = @(x,y) NewAudioPlayer(x,y);
99
function varargout=NewAudioRead(varargin)
10-
load(fullfile(currentProject().RootFolder,"SoftwareTests","InitFiles","InitAnalogToDigitalConversion.mat"));
10+
load(fullfile(currentProject().RootFolder,"SoftwareTests","PreFiles","PreAnalogToDigitalConversion.mat"));
1111
varargout={JazzSignal,JazzSamplingFreq};
1212
end
1313
function varargout=NewAudioPlayer(varargin)

0 commit comments

Comments
 (0)