Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Build
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# Controls when the action will run.
on:
workflow_dispatch: {}
push:
branches:
- main
paths-ignore:
- '.github/**'
# Triggers the workflow on push or pull request events but only for the main branch
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- .
unityVersion:
- 2022.2.0f1
targetPlatform:
- WebGL
steps:
- name: Checkout
uses: actions/[email protected]
with:
lfs: true
clean: false
# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library
# Build
- name: Build project
uses: game-ci/[email protected]
with:
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
# Output
- uses: actions/[email protected]
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}