Skip to content

Commit 828edfc

Browse files
committed
cache unity setup to prevent repetitive install
1 parent 837039a commit 828edfc

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,22 @@ jobs:
4343
run: |
4444
brew install gh jq || true
4545
gh auth status || gh auth login --with-token <<< "$GH_TOKEN"
46-
47-
- name: Set up Unity
46+
47+
- name: Cache Unity installation
48+
id: cache-unity
49+
uses: actions/cache@v4
50+
with:
51+
path: /opt/unity
52+
key: unity-${{ runner.os }}-2021.3.0f1
53+
54+
- name: Setup Unity
55+
if: steps.cache-unity.outputs.cache-hit != 'true'
4856
uses: buildalon/unity-setup@v2.1.1
4957
with:
50-
unity-version: '2021.3.0f1' # the oldest version of Unity we want to support and upload from
51-
modules: 'linux-il2cpp android ios'
52-
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
version: 2021.3.0f1
59+
60+
- name: Verify Unity
61+
run: /opt/unity/Editor/Unity -version
5362

5463
- name: 🏗️ Run composeRelease.sh
5564
run: |

0 commit comments

Comments
 (0)