Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelBMartins committed Jan 17, 2021
1 parent 4251c7c commit 53e3701
Showing 1 changed file with 35 additions and 22 deletions.
57 changes: 35 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
# This is a basic workflow to help you get started with Actions
name: Actions 😎

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
pull_request: {}
push: { branches: [main] }

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
name: Build my project ✨
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Checkout
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true

# Cache
- uses: actions/cache@v1.1.0
with:
path: Library
key: Library

# Test
- name: Run tests
uses: webbertakken/unity-test-runner@v1.3
with:
unityVersion: 2020.1.7f1

# Build
- name: Build project
uses: webbertakken/unity-builder@v0.10
with:
unityVersion: 2020.1.7f1
targetPlatform: StandaloneWindows64

- name: Unity - Builder
# You may pin to the exact commit or the version.
# uses: game-ci/unity-builder@c8202c01e7dfe4de0e897b26cb2ca1cc363e4ad4
uses: game-ci/unity-builder@v2.0-alpha-6
# Output
- uses: actions/upload-artifact@v1
with:
name: Build
path: build

0 comments on commit 53e3701

Please sign in to comment.