99 # MINIMUM_VERSION: The minimum version of Unity.
1010 MINIMUM_VERSION : 6000.0
1111 # EXCLUDE_FILTER: The excluded versions of Unity.
12- EXCLUDE_FILTER : " (2020.2.0|2021.1|2023.2|2023.3 )"
12+ EXCLUDE_FILTER : " (2017|2018 )"
1313 PROJECT_PATH : UIEffectURP
1414
1515on :
4646 id : setup
4747 run : |
4848 echo "==== Target Unity Versions ===="
49- LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
49+ LATEST_VERSIONS=`npx unity-changeset@latest list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
5050 if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
5151 ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json`
5252 else
@@ -72,11 +72,11 @@ jobs:
7272 steps :
7373 - name : 🚚 Checkout ($${{ github.ref }})
7474 if : github.event_name == 'push'
75- uses : actions/checkout@v4
75+ uses : actions/checkout@v5
7676
7777 - name : 🚚 Checkout pull request (pull_request_target)
7878 if : github.event_name == 'pull_request_target'
79- uses : actions/checkout@v4
79+ uses : actions/checkout@v5
8080 with :
8181 ref : ${{ github.event.pull_request.head.sha }}
8282 fetch-depth : 0
@@ -86,19 +86,20 @@ jobs:
8686 run : |
8787 git config user.name "GitHub Actions"
8888 git config user.email "actions@github.com"
89- git merge origin/${{ github.event.pull_request.base.ref }} --no-edit
89+ git rebase ${{ github.event.pull_request.base.sha }}
90+ git log --oneline -n 10
9091
9192 - name : 📥 Cache library
9293 uses : actions/cache@v4
9394 with :
94- path : Library
95- key : Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
95+ path : ${{ env.PROJECT_PATH }}/ Library
96+ key : ${{ env.PROJECT_PATH }}- Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
9697 restore-keys : |
97- Library-${{ matrix.unityVersion }}-
98- Library-
98+ ${{ env.PROJECT_PATH }}- Library-${{ matrix.unityVersion }}-
99+ ${{ env.PROJECT_PATH }}- Library-
99100
100101 - name : 🛠️ Build Unity Project (Test)
101- uses : game-ci/unity-builder@v4
102+ uses : game-ci/unity-builder@main
102103 timeout-minutes : 45
103104 with :
104105 customImage : ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
0 commit comments