Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mducle committed Sep 3, 2024
1 parent 30e03e5 commit 54bdb52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_pyspinw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ jobs:
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab_version }}
release: latest
- name: Build mltbx
uses: matlab-actions/run-command@v2
with:
command: "create_mltbx"
command: "cd mltbx; create_mltbx"
- name: Upload mltbx
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion mltbx/create_mltbx.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
currdir = fileparts(mfilename('fullpath'));
rmdir(fullfile(currdir, 'mltbx'), 's');
mltbx_dir = fullfile(currdir, 'mltbx');
if exist(mltbx_dir)
rmdir(mltbx_dir, 's');
end
mkdir(fullfile(currdir, 'mltbx'));
copyfile(fullfile(currdir, '..', 'CITATION.cff'), fullfile(currdir, 'mltbx'));
copyfile(fullfile(currdir, '..', 'license.txt'), fullfile(currdir, 'mltbx'));
Expand Down

0 comments on commit 54bdb52

Please sign in to comment.