Skip to content

update package.json #52

update package.json

update package.json #52

Workflow file for this run

name: Run the Windows build
on:
[push, pull_request]
jobs:
build:
name: ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- Unity_TimemachineDemoProject~/
targetPlatform:
- StandaloneWindows
- StandaloneWindows64
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
lfs: true
# Cache
- name: Cache
uses: actions/cache@v3
with:
path: ${{ matrix.projectPath }}/Library
key: ${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{
hashFiles(matrix.projectPath) }}
restore-keys: |
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-
Library-${{ matrix.projectPath }}-
Library-
# Build
- name: Build
uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
projectPath: ${{ matrix.projectPath }}
targetPlatform: ${{ matrix.targetPlatform }}
# Upload Build
- name: Upload Build
uses: actions/upload-artifact@v2
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}