3535 - name : Clone Repository
3636 uses : actions/checkout@v3
3737 with :
38- fetch-depth : 0
38+ fetch-depth : 1
39+
40+ - name : Clone CnCNet Repository
41+ uses : actions/checkout@v3
42+ with :
43+ fetch-depth : 1
44+ repository : CnCNet/ts-patches-private
45+ path : ' cncnet'
46+ ssh-key : ${{ secrets.CNCNET_CI_SSH_PRIVATEKEY }}
3947
4048 - name : Get Branch Name
4149 id : branch-name
@@ -92,6 +100,17 @@ jobs:
92100 gmake -j8 ${{ matrix.type }}=1 VINIFERA=1
93101 Move-Item -Path 'game.exe' -Destination 'build\vinifera\game.exe'
94102
103+ # Only build the CnCNet binaries for TSCLIENT
104+ if ("${{ matrix.type }}" -eq "TSCLIENT") {
105+ New-Item -Path 'build\cncnet' -ItemType Directory
106+
107+ gmake clean
108+ gmake -j8 ${{ matrix.type }}=1 CNCNET=1
109+ Move-Item -Path 'game.exe' -Destination 'build\cncnet\game.exe'
110+
111+ Get-ChildItem -Path 'build\cncnet'
112+ }
113+
95114 Get-ChildItem -Path 'build\release'
96115 # Get-ChildItem -Path 'build\debug'
97116 Get-ChildItem -Path 'build\vinifera'
@@ -106,6 +125,13 @@ jobs:
106125 # Move-Item -Path 'build\debug\game.exe' -Destination 'artifact\debug\game.exe'
107126 Move-Item -Path 'build\vinifera\game.exe' -Destination 'artifact\vinifera\game.exe'
108127
128+ # Only pack the CnCNet binaries for TSCLIENT
129+ if ("${{ matrix.type }}" -eq "TSCLIENT") {
130+ New-Item -Path 'artifact\cncnet' -ItemType Directory
131+ Move-Item -Path 'build\cncnet\game.exe' -Destination 'artifact\cncnet\game.dat'
132+ Get-ChildItem -Path 'artifact\cncnet'
133+ }
134+
109135 Get-ChildItem -Path 'artifact\release'
110136 # Get-ChildItem -Path 'artifact\debug'
111137 Get-ChildItem -Path 'artifact\vinifera'
0 commit comments