2323 - name : Build Mex
2424 uses : matlab-actions/run-command@v2
2525 with :
26- command : buildScript, cppDeploy
26+ command : buildScript
2727 - name : Run tests
2828 uses : matlab-actions/run-command@v2
2929 with :
3333 run : tar --exclude="**/-lang:c++.zip" --exclude=".git*/" --exclude="htmlcov/" -acvf ../${{ runner.os }}.zip *
3434 - name : Create build archive (Linux)
3535 if : runner.os == 'Linux'
36- run : |
37- rm -rf ../${{ runner.os }}.zip
38- zip -r ../${{ runner.os }}.zip * -x "**/-lang:c++.zip" ".git*/" "htmlcov/"
36+ run : zip -r ../${{ runner.os }}.zip * -x "**/-lang:c++.zip" ".git*/" "htmlcov/*"
3937 - name : Upload release
4038 if : github.ref == 'refs/heads/master'
4139 uses : svenstaro/upload-release-action@v2
4644 overwrite : true
4745 file : ' ../${{ runner.os }}.zip'
4846 asset_name : ' ${{ runner.os }}.zip'
47+ - name : Create cppDelopy
48+ if : runner.os == 'Linux'
49+ uses : matlab-actions/run-command@v2
50+ with :
51+ command : cppDeploy
52+ - name : Upload cppDelopy
53+ if : runner.os == 'Linux'
54+ uses : actions/upload-artifact@v4
55+ with :
56+ name : cppDeploy
57+ path : compile/fullCompile/cppDeploy/
58+ - name : Remove build archive
59+ run : rm ../${{ runner.os }}.zip
4960
5061 cpp-deploy :
5162 if : github.ref == 'refs/heads/master'
@@ -57,15 +68,18 @@ jobs:
5768 with :
5869 ref : generated_source
5970 path : rat_source
71+ - name : Get cppDeploy
72+ uses : actions/download-artifact@v4
73+ with :
74+ name : cppDeploy
75+ path : cppDeploy/
6076 - name : Deploy Source
6177 run : |
62- wget https://github.com/RascalSoftware/RAT/releases/download/nightly/Linux.zip
63- unzip Linux.zip
6478 rm -rf rat_source/*.c rat_source/*.cpp rat_source/*.h rat_source/*.hpp
65- rsync -av compile/fullCompile/ cppDeploy/ rat_source/
79+ rsync -av cppDeploy/ rat_source/
6680 cd rat_source
6781 git config user.name github-actions
6882 git config user.email github-actions@github.com
6983 git add -A
7084 git commit -m "Deploy Source Code" || true
71- git push
85+ git push
0 commit comments