Skip to content

Commit dd50c5d

Browse files
committed
make build explicitly upload zips
1 parent c9197a2 commit dd50c5d

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,16 @@ jobs:
7474
- name: Build GUI
7575
run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj
7676

77+
- name: Zip artifacts
78+
shell: pwsh
79+
run: |
80+
Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip
81+
7782
- name: Upload GUI Artifact
7883
uses: actions/upload-artifact@v4
7984
with:
8085
name: Il2CppInspectorRedux.GUI
81-
path: ./win-x64
86+
path: ./win-x64.zip
8287

8388
build-redux-cli:
8489
runs-on: ubuntu-latest
@@ -117,11 +122,16 @@ jobs:
117122
- name: Build & Publish
118123
run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI/Il2CppInspector.Redux.CLI.csproj
119124

125+
- name: Zip artifacts
126+
shell: pwsh
127+
run: |
128+
Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip
129+
120130
- name: Upload artifacts
121131
uses: actions/upload-artifact@v4
122132
with:
123133
name: Il2CppInspectorRedux.CLI-${{ matrix.rid }}
124-
path: ./${{ matrix.rid }}
134+
path: ./${{ matrix.rid }}.zip
125135

126136
build-old-gui:
127137
runs-on: windows-latest
@@ -152,13 +162,18 @@ jobs:
152162
run: dotnet restore -r win-x64 ./Il2CppInspector.GUI
153163

154164
- name: Build GUI
155-
run: dotnet publish ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj -c Release -r win-x64 --no-self-contained
165+
run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj
156166

157-
- name: Upload GUI Artifact
167+
- name: Zip artifacts
168+
shell: pwsh
169+
run: |
170+
Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip
171+
172+
- name: Upload GUI artifact
158173
uses: actions/upload-artifact@v4
159174
with:
160175
name: Il2CppInspectorRedux.Legacy.GUI
161-
path: Il2CppInspector.GUI/bin/Release/net10.0-windows/win-x64/publish
176+
path: ./win-x64.zip
162177

163178
build-old-cli:
164179
runs-on: ubuntu-latest
@@ -195,8 +210,13 @@ jobs:
195210
- name: Build & Publish
196211
run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj
197212

213+
- name: Zip artifacts
214+
shell: pwsh
215+
run: |
216+
Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip
217+
198218
- name: Upload artifacts
199219
uses: actions/upload-artifact@v4
200220
with:
201221
name: Il2CppInspectorRedux.Legacy.CLI-${{ matrix.rid }}
202-
path: ./${{ matrix.rid }}
222+
path: ./${{ matrix.rid }}.zip

0 commit comments

Comments
 (0)