Skip to content

Update build-windows.yml #8

Update build-windows.yml

Update build-windows.yml #8

Workflow file for this run

name: Build Project
on:
push:
branches: master
workflow_dispatch: {}
jobs:
build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneOSX
- StandaloneWindows64
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v3
# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: |
Library-
# Build
- name: Build project
uses: game-ci/unity-builder@v3
id: buildStep
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildName: hatbor
versioning: Semantic
# Output
- uses: actions/upload-artifact@v3
with:
name: hatbor-${{ matrix.targetPlatform }}-${{ steps.buildStep.outputs.buildVersion }}
path: build/${{ matrix.targetPlatform }}