File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -57,17 +57,13 @@ jobs:
5757 uses : matlab-actions/run-command@v2
5858 with :
5959 command : addPaths; generateMexFromCpp; testScript
60- - name : Create build archive
61- shell : bash -l {0}
62- run : |
63- if [ ${{ runner.os }} == "Linux" ]; then
64- echo "hello"
65- zip -r ../${{ runner.os }}-${{ runner.arch }}.zip * -x "**/-lang:c++.zip" ".git*/" "htmlcov/*" "**/codegen/*"
66- else
67- echo "world"
68- tar --exclude="**/-lang:c++.zip" --exclude=".git*/" --exclude="**/codegen/" --exclude="htmlcov/" -acvf ../${{ runner.os }}-${{ runner.arch }}.zip *
69- fi
70- mv ../${{ runner.os }}-${{ runner.arch }}.zip ${{ runner.os }}-${{ runner.arch }}.zip
60+ - name : Create build archive (Windows and macOS)
61+ if : runner.os != 'Linux'
62+ run : tar --exclude="**/-lang:c++.zip" --exclude=".git*/" --exclude="**/codegen/" --exclude="htmlcov/" -acvf ../${{ runner.os }}.zip *
63+ - name : Create build archive (Linux)
64+ if : runner.os == 'Linux'
65+ run : zip -r ../${{ runner.os }}.zip * -x "**/-lang:c++.zip" ".git*/" "htmlcov/*" "**/codegen/*"
66+ - run : mv ../${{ runner.os }}.zip ${{ runner.os }}.zip
7167 - name : Upload releases
7268 uses : actions/upload-artifact@v4
7369 with :
You can’t perform that action at this time.
0 commit comments