diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 981ee53..833bc36 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,11 +74,16 @@ jobs: - name: Build GUI run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj + - name: Zip artifacts + shell: pwsh + run: | + Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip + - name: Upload GUI Artifact uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.GUI - path: ./win-x64 + path: ./win-x64.zip build-redux-cli: runs-on: ubuntu-latest @@ -117,11 +122,16 @@ jobs: - name: Build & Publish run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.Redux.CLI/Il2CppInspector.Redux.CLI.csproj + - name: Zip artifacts + shell: pwsh + run: | + Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip + - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.CLI-${{ matrix.rid }} - path: ./${{ matrix.rid }} + path: ./${{ matrix.rid }}.zip build-old-gui: runs-on: windows-latest @@ -152,13 +162,18 @@ jobs: run: dotnet restore -r win-x64 ./Il2CppInspector.GUI - name: Build GUI - run: dotnet publish ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj -c Release -r win-x64 --no-self-contained + run: dotnet publish -c Release --no-self-contained --no-restore -o ./win-x64 -r win-x64 ./Il2CppInspector.GUI/Il2CppInspector.GUI.csproj - - name: Upload GUI Artifact + - name: Zip artifacts + shell: pwsh + run: | + Compress-Archive -Path ./win-x64/* -DestinationPath ./win-x64.zip + + - name: Upload GUI artifact uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.Legacy.GUI - path: Il2CppInspector.GUI/bin/Release/net10.0-windows/win-x64/publish + path: ./win-x64.zip build-old-cli: runs-on: ubuntu-latest @@ -195,8 +210,13 @@ jobs: - name: Build & Publish run: dotnet publish -c Release --no-self-contained --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} ./Il2CppInspector.CLI/Il2CppInspector.CLI.csproj + - name: Zip artifacts + shell: pwsh + run: | + Compress-Archive -Path ./${{ matrix.rid }}/* -DestinationPath ./${{ matrix.rid }}.zip + - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: Il2CppInspectorRedux.Legacy.CLI-${{ matrix.rid }} - path: ./${{ matrix.rid }} + path: ./${{ matrix.rid }}.zip