Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol committed Nov 6, 2023
1 parent 7f8a9a3 commit 06ee13f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 66 deletions.
68 changes: 3 additions & 65 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ jobs:
runs-on: windows-2022
needs: [buildWithLinux, buildWithMac]
outputs:
buildVersion: ${{ steps.build-1.outputs.buildVersion }}
buildVersion: ${{ steps.build.outputs.buildVersion }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -503,40 +503,9 @@ jobs:
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
id: build
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 }}
Expand Down Expand Up @@ -592,40 +561,9 @@ jobs:
git add .
git reset --hard
- 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: WSAPlayer
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
id: build
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: WSAPlayer
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 }}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Plugins/WebGL/React.jslib
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mergeInto(LibraryManager.library, {
GameReady: function (userName, score) {
GameReady: function () {
window.dispatchReactUnityEvent("GameReady");
},
});

0 comments on commit 06ee13f

Please sign in to comment.