Skip to content

Commit 0fa60e5

Browse files
committed
Use proper zip
1 parent 5d2d20c commit 0fa60e5

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/il2cpp.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,16 @@ jobs:
7777
# # Replace `BuildScript.PerformBuild` with your project's build method.
7878
# /opt/unity/Editor/Unity -batchmode -nographics -quit -projectPath "$GITHUB_WORKSPACE" -buildTarget ${{ matrix.target }} -executeMethod BuildScript.PerformBuild -logFile "$outdir/build.log" || true
7979

80-
- name: Archive build
80+
- name: Archive build (Linux/macOS)
81+
if: runner.os != 'windows-latest'
8182
run: |
82-
zip -r build-${{ matrix.unity }}-${{ matrix.target }}.zip ./build
83+
zip -r build-${{ matrix.unity }}-${{ matrix.target }}.zip ./build
84+
85+
- name: Archive build (Windows)
86+
if: runner.os == 'windows-latest'
87+
shell: pwsh
88+
run: |
89+
Compress-Archive -Path build -DestinationPath build-${{ matrix.unity }}-${{ matrix.target }}.zip -Force
8390
8491
- name: Upload to GitHub Release
8592
if: github.event_name == 'release'

0 commit comments

Comments
 (0)