Skip to content

Commit

Permalink
Update to unity builder v4
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesDeml committed Dec 6, 2023
1 parent 76ed38d commit 1977c2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
TAG: ${{ steps.set_tag.outputs.VERSION }}
BUILD_NAME: ${{ steps.set_build_name.outputs.VERSION }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Version missmatch ❌
if: ${{ !startsWith(needs.variables.outputs.TAG, needs.variables.outputs.UNITY_VERSION) }}
uses: actions/github-script@v3
uses: actions/github-script@v4
with:
script: |
core.setFailed('Unity version does not match tag version')
Expand All @@ -69,7 +69,7 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
Expand All @@ -92,9 +92,11 @@ jobs:
restore-keys: Library-201x-

- name: Build project
uses: game-ci/unity-builder@v3
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
buildMethod: UnityBuilderAction.BuildScript.BuildWithCommandlineArgs
customParameters: -tag ${{ needs.variables.outputs.TAG }}
Expand Down Expand Up @@ -136,7 +138,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/upgrade-unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
MERGE_MASTER: ${{ inputs.mergeMaster }}
CUSTOM_PARAMETERS: ${{ inputs.customParameters }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
Expand Down Expand Up @@ -126,10 +126,11 @@ jobs:
- name: Build project
if: ${{ !inputs.tagsOnly }}
# TODO change this back to v3 once manual exit is supported there
uses: game-ci/unity-builder@main
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
buildMethod: UnityBuilderAction.UnityPackageScripts.UpgradeAllPackagesToVerifiedVersion
customParameters: ${{ inputs.customParameters }}
Expand Down

0 comments on commit 1977c2c

Please sign in to comment.