Skip to content

Commit

Permalink
chore: windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-yangy committed Oct 16, 2024
1 parent 5e58626 commit 5a7a408
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
name: Coverage results
path: ${{ steps.passportTest.outputs.coveragePath }}
build:
ubuntu-build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest-8-cores
strategy:
Expand Down Expand Up @@ -72,6 +72,40 @@ jobs:
unityVersion: 2021.3.26f1
targetPlatform: ${{ matrix.targetPlatform }}
projectPath: './sample'
- uses: actions/upload-artifact@v3
with:
name: Build
path: build
windows-build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- uses: actions/cache@v3
with:
path: Library
key:
Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-${{ matrix.targetPlatform }}
Library-
- uses: game-ci/unity-builder@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
unityVersion: 2021.3.26f1
targetPlatform: ${{ matrix.targetPlatform }}
projectPath: './sample'
- uses: actions/upload-artifact@v3
with:
name: Build
Expand Down

0 comments on commit 5a7a408

Please sign in to comment.