File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will automatically create a ZIP file
2+ # of the distribution files, and add them to a GitHub
3+ # release. It only runs, on creation of the GitHub
4+ # release.
5+
6+ name : Build Package
7+
8+ on :
9+ release :
10+ types : [published]
11+
12+ permissions :
13+ contents : write
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+
23+ - name : Zip code to distribute
24+ run : |
25+ zip -r "pgmatlab-${{ github.event.release.tag_name }}.zip" pgmatlab/* LICENSE README.md
26+
27+ - name : Upload code to distribute
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : dist-files
31+ path : " pgmatlab-${{ github.event.release.tag_name }}.zip"
32+
33+ - name : Append distribution code to release
34+ uses : softprops/action-gh-release@v2
35+ with :
36+ files : " pgmatlab-${{ github.event.release.tag_name }}.zip"
Original file line number Diff line number Diff line change 1+ name : MATLAB Testing
2+
3+ # Controls when the workflow will run
4+ on :
5+ # Triggers the workflow on push or pull request events but only for the "main" branch
6+ push :
7+ branches : [ "v2", "main" ]
8+ pull_request :
9+ branches : [ "v2", "main" ]
10+
11+ # Allows you to run this workflow manually from the Actions tab
12+ workflow_dispatch :
13+
14+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+ jobs :
16+ # This workflow contains a single job called "build"
17+ build :
18+ # The type of runner that the job will run on
19+ runs-on : ${{ matrix.os }}
20+ strategy :
21+ matrix :
22+ matlab-version : [r2025a]
23+ os : [ubuntu-latest, windows-latest, macos-latest]
24+
25+
26+ steps :
27+ - name : Check out repository
28+ uses : actions/checkout@v4
29+
30+ - name : Set up MATLAB
31+ uses : matlab-actions/setup-matlab@v2.1.2
32+ with :
33+ version : ${{ matrix.matlab-version }}
34+
35+ - name : Run MATLAB Tests
36+ uses : matlab-actions/run-tests@v2.1.2
37+ with :
38+ select-by-folder : tests
Original file line number Diff line number Diff line change 77 resourcesFolder = ' resources' ; % inside root
88 dataFolder = ' data' ; % inside resources
99 legacyFolder = ' v1.0.1code' ; % inside resources
10- codeFolder = ' pgmatlab ' ; % inside root
10+ codeFolder = ' src ' ; % inside root
1111
1212 rootDir ;
1313 testsDir ;
You can’t perform that action at this time.
0 commit comments