Skip to content

Commit

Permalink
fix: unity license workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniol0012 committed Dec 10, 2024
1 parent 28c98b4 commit 657c3f9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ jobs:
restore-keys: |
Library-${{ runner.os }}
- name: Save Unity license to file
run: echo "${{ secrets.UNITY_LICENSE }}" > unity.ulf
- name: Create Unity license file
run: |
mkdir -p $HOME/.local/share/unity3d/Unity
echo "${{ secrets.UNITY_LICENSE }}" > $HOME/.local/share/unity3d/Unity/Unity_lic.ulf
- name: Verify license file
run: cat $HOME/.local/share/unity3d/Unity/Unity_lic.ulf

- name: Activate Unity license
uses: game-ci/unity-activate@v2
with:
activationFile: unity.ulf
unityVersion: 2022.3.14f1

- name: Run Unity tests
uses: game-ci/unity-test-runner@v2
Expand Down

0 comments on commit 657c3f9

Please sign in to comment.