-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[unity]ut的unity_modules和install_path可定制
- Loading branch information
1 parent
ac895ba
commit 9d5ac6b
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ inputs: | |
required: | ||
cachekey: | ||
required: | ||
install_path: | ||
required: | ||
unity_modules: | ||
required: | ||
UNITY_USERNAME: | ||
required: | ||
UNITY_PASSWORD: | ||
|
@@ -20,29 +24,29 @@ runs: | |
- uses: actions/cache/restore@v3 | ||
id: cache-unity | ||
with: | ||
path: C:/UNITY | ||
path: ${{ inputs.install_path }} | ||
key: ${{ inputs.os }}-${{ inputs.cachekey }}-unity | ||
- name: MKDIR | ||
if: steps.cache-unity.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: mkdir C:/UNITY | ||
run: mkdir ${{ inputs.install_path }} | ||
- name: Setup Unity | ||
if: steps.cache-unity.outputs.cache-hit != 'true' | ||
uses: kuler90/setup-unity@v1 | ||
with: | ||
unity-modules: windows-il2cpp | ||
unity-modules: ${{ inputs.unity_modules }} | ||
unity-version: ${{ inputs.version }} | ||
install-path: C:/UNITY | ||
install-path: ${{ inputs.install_path }} | ||
- uses: actions/cache/save@v3 | ||
if: steps.cache-unity.outputs.cache-hit != 'true' | ||
with: | ||
path: C:/UNITY | ||
path: ${{ inputs.install_path }} | ||
key: ${{ inputs.os }}-${{ inputs.cachekey }}-unity | ||
|
||
- name: Activate Unity | ||
uses: kuler90/[email protected] | ||
with: | ||
unity-path: C:/UNITY/${{ inputs.version }}/Editor/Unity.exe | ||
unity-path: ${{ inputs.install_path }}/${{ inputs.version }}/Editor/Unity.exe | ||
unity-username: ${{ inputs.UNITY_USERNAME }} | ||
unity-password: ${{ inputs.UNITY_PASSWORD }} | ||
unity-serial: ${{ inputs.UNITY_SERIAL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters