Closed davidmfinol closed 1 year ago
Adding a retry to my workflow lets me gets pass this error. Ideally retry would not be needed, but I'm ok to leave this is as is for now.
EDIT: For those that run into the same issue, this is my current workaround:
name: Build for ${{ matrix.targetPlatform }}
runs-on: windows-2019
needs: [buildWithLinux, buildWithMac]
outputs:
buildVersion: ${{ steps.build-1.outputs.buildVersion }}
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows
- StandaloneWindows64
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
- name: Git LFS Pull
run: |
git lfs pull
git add .
git reset --hard
- name: Cache Library
uses: actions/cache@v3
with:
path: Library
key: Library-buildWindows-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-buildWindows-${{ matrix.targetPlatform }}-
Library-buildWindows-
- name: Build Unity Project
id: build-0
continue-on-error: true
timeout-minutes: 45
uses: game-ci/unity-builder@main
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL_PERSONAL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD_PERSONAL }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL_PERSONAL }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildMethod: Cgs.Editor.BuildCgs.BuildOptions
- name: Sleep for Retry
if: ${{ steps.build-0.outcome == 'failure' }}
run: Start-Sleep -s 120
- name: Build Retry
id: build-1
continue-on-error: true
timeout-minutes: 45
if: steps.build-0.outcome == 'failure'
uses: game-ci/unity-builder@main
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL_PERSONAL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD_PERSONAL }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL_PERSONAL }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildMethod: Cgs.Editor.BuildCgs.BuildOptions
- name: Sleep for Retry 2
if: ${{ steps.build-0.outcome == 'failure' && steps.build-1.outcome == 'failure' }}
run: Start-Sleep -s 240
- name: Build Retry 2
id: build-2
timeout-minutes: 45
if: ${{ steps.build-0.outcome == 'failure' && steps.build-1.outcome == 'failure' }}
uses: game-ci/unity-builder@main
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL_PERSONAL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD_PERSONAL }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL_PERSONAL }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildMethod: Cgs.Editor.BuildCgs.BuildOptions
- name: Upload Build
uses: actions/upload-artifact@v3
if: github.event.action == 'published' || contains(github.event.inputs.workflow_mode, matrix.targetPlatform) || (contains(github.event.inputs.workflow_mode, 'Steam') && contains(matrix.targetPlatform, 'StandaloneWindows'))
with:
name: cgs-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}
- name: Zip Build
uses: vimtor/action-zip@v1
if: github.event.action == 'published' && matrix.targetPlatform != 'WSAPlayer'
with:
files: build/${{ matrix.targetPlatform }}/
dest: build/cgs-${{ matrix.targetPlatform }}.zip
- name: Upload Zip to GitHub Release
uses: svenstaro/upload-release-action@v2
if: github.event.action == 'published' && matrix.targetPlatform != 'WSAPlayer'
with:
repo_token: ${{ secrets.CGS_PAT }}
asset_name: cgs-${{ matrix.targetPlatform }}.zip
file: build/cgs-${{ matrix.targetPlatform }}.zip
tag: ${{ github.ref }}
overwrite: true
body: ${{ github.event.release.body }}
Would definitely appreciate help if anyone has a better solution to this!
+1 Same problem for me.
Fixed with v4 of the images
This bug is still present with v4 of the image for us. It does happen from time to time and requires manual restart of the CD for us.
@DynoTan Can you confirm it is indeed the same bug (i.e. same output)?
I had the same problem and it was because my password had special characters... I removed them and it worked !
had this issue today, restart of our local runner solved this. No clue how and why though
Weird. Remove -serial solved this.
Bug description
Trying to build with Windows IL2CPP for Unity 2022.3.x. Getting this error during the activate step:
Which ultimately ends with this error:
How to reproduce
Using this workflow: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/6098557061/workflow Specifically, this job:
Expected behavior
Build should succeed.
Additional details
Discord thread: https://discord.com/channels/710946343828455455/1149754243562090516