File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on : [workflow_dispatch]
4+
5+ jobs :
6+ build_linux :
7+ runs-on : ubuntu-latest
8+ container :
9+ image : ubuntu:20.04
10+ steps :
11+ - name : Install dependencies
12+ run : |
13+ sudo apt-get update
14+ sudo apt-get install -y build-essential git curl
15+ - name : Setup xmake
16+ uses : xmake-io/github-action-setup-xmake@v1
17+ with :
18+ xmake-version : latest
19+ - name : Checkout repository and submodules
20+ uses : actions/checkout@v4
21+ with :
22+ submodules : recursive
23+ - name : Build
24+ run : |
25+ xmake build
26+ - name : Upload plugin as artifact
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : swiftlys2_linux
30+ path : build/package
Original file line number Diff line number Diff line change @@ -324,11 +324,11 @@ target("swiftlys2")
324324 os .mkdir (' build/package/addons/metamod' )
325325 os .cp (" plugin_files/" , ' build/package/addons/swiftlys2' )
326326 os .mkdir (' build/package/addons/swiftlys2/bin/' .. GetDistDirName ())
327- os .cp (target :targetfile (), ' build/package/addons/swiftlys2/bin/' .. GetDistDirName ().. " /swiftly ." .. (is_plat (" windows" ) and " dll" or " so" ))
328- io .writefile (" build/package/addons/metamod/swiftly .vdf" , [[ "Metamod Plugin"
327+ os .cp (target :targetfile (), ' build/package/addons/swiftlys2/bin/' .. GetDistDirName ().. " /swiftlys2 ." .. (is_plat (" windows" ) and " dll" or " so" ))
328+ io .writefile (" build/package/addons/metamod/swiftlys2 .vdf" , [[ "Metamod Plugin"
329329{
330- "alias" "swiftly "
331- "file" "addons/swiftlys2/bin/]] .. GetDistDirName ().. [[ /swiftly "
330+ "alias" "swiftlys2 "
331+ "file" "addons/swiftlys2/bin/]] .. GetDistDirName ().. [[ /swiftlys2 "
332332}
333333]] )
334334 end )
You can’t perform that action at this time.
0 commit comments