use different library caches for each OS
Some checks failed
Build project / Build for ${{ matrix.targetPlatform }} (${{ matrix.unityVersion }}) (StandaloneLinux64, 6000.0.37f1) (push) Failing after 1h6m35s
Build project / Build for ${{ matrix.targetPlatform }} (${{ matrix.unityVersion }}) (StandaloneWindows64, 6000.0.37f1) (push) Failing after 20m45s

This commit is contained in:
EthanPisani 2025-02-19 17:36:54 -05:00
parent acd21e3458
commit 7b605145ff

View File

@ -29,12 +29,22 @@ jobs:
fetch-depth: 0 fetch-depth: 0
lfs: true lfs: true
- name: Clean Library and Build folder
run: |
rm -rf Library
rm -rf build
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
path: Library path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} key: Library-${{ matrix.unityVersion }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}-${{ github.run_id }}
restore-keys: | restore-keys: |
Library- Library-${{ matrix.unityVersion }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
Library-
- name: Debug - List project files
run: |
ls -R
- uses: https://github.com/game-ci/unity-builder@v4 - uses: https://github.com/game-ci/unity-builder@v4
env: env:
@ -46,6 +56,7 @@ jobs:
runAsHostUser: true runAsHostUser: true
unityVersion: ${{ matrix.unityVersion }} unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }} targetPlatform: ${{ matrix.targetPlatform }}
#customParameters: -logFile /dev/stdout -batchmode -nographics -quit
- name: Zip build artifacts - name: Zip build artifacts
run: | run: |
@ -74,11 +85,11 @@ jobs:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
with: with:
server_url: ${{ github.server_url }} server_url: ${{ github.server_url }}
tag_name: ${{ github.sha }} tag_name: ${{ github.sha | substring(0, 7) }}
name: Release ${{ github.sha }} name: Release ${{ github.sha | substring(0, 7) }}
draft: false draft: false
prerelease: false prerelease: false
files: | files: |
/tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip /tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip
md5sum: true md5sum: true
sha256sum: true sha256sum: false