Skip to content

Commit 03f5f80

Browse files
committed
test
1 parent 0877417 commit 03f5f80

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/runTests.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)