55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: Build WACVR
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'Assets/**'
|
|
- 'Packages/**'
|
|
- 'ProjectSettings/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-2019
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Cache project
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: Library
|
|
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
|
|
restore-keys: |
|
|
Library-
|
|
|
|
- name: Cache Docker image
|
|
uses: ScribeMD/docker-cache@0.3.4
|
|
with:
|
|
key: docker-${{ runner.os }}-${{ hashFiles('ProjectSettings/ProjectVersion.txt') }}
|
|
|
|
- uses: game-ci/unity-builder@v2
|
|
name: Build project
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
with:
|
|
targetPlatform: StandaloneWindows64
|
|
buildName: WACVR
|
|
|
|
- name: Clean debug folder
|
|
uses: JesseTG/rm@v1.0.3
|
|
with:
|
|
path: build\StandaloneWindows64\WACVR_BurstDebugInformation_DoNotShip
|
|
|
|
- name: Clean backup folder
|
|
uses: JesseTG/rm@v1.0.3
|
|
with:
|
|
path: build\StandaloneWindows64\WACVR_BackUpThisFolder_ButDontShipItWithYourGame
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3.0.0
|
|
with:
|
|
path: build\StandaloneWindows64
|