Skip to content

Commit

Permalink
fix: docker version v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniol0012 committed Dec 10, 2024
1 parent 94bbcd4 commit d354220
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/build-unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Restore Library cache
uses: actions/cache@v4
- name: Cache Unity packages
uses: actions/cache@v3
with:
path: PacoMonkey/Library
key: Library-${{ runner.os }}-${{ github.sha }}
path: Library
key: Library-$(runner.os)-$(hashFiles('**/Packages/manifest.json'))
restore-keys: |
Library-${{ runner.os }}
Library-$(runner.os)-
- 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
- name: Activate Unity license
uses: game-ci/unity-activate@v2
with:
unityVersion: '2022.3.14f1'
dockerImage: 'unityci/editor:ubuntu-2022.3.14f1-linux-il2cpp-3'
activationFile: ${{ secrets.UNITY_LICENSE }}

- name: Build project
uses: game-ci/unity-builder@v2
with:
projectPath: PacoMonkey
unityVersion: '2022.3.14f1'
targetPlatform: WebGL

- name: Upload build
uses: actions/upload-artifact@v4
with:
name: WebGL Build
path: PacoMonkey/build/WebGL

0 comments on commit d354220

Please sign in to comment.