spec docker image #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Project | |
on: | |
push: | |
branches: | |
- main | |
- next | |
- feat-github_action | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: Unity | |
steps: | |
# Check | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
# Cache | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: Library | |
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
restore-keys: | | |
Library- | |
# Test | |
# - name: Run tests | |
# uses: game-ci/unity-test-runner@v4 | |
# env: | |
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
# with: | |
# githubToken: ${{ secrets.GITHUB_TOKEN }} | |
# Build | |
- name: Build project | |
uses: game-ci/unity-builder@v4 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
targetPlatform: StandaloneWindows64 | |
customImage: 'unityci/editor:2020.1.14f1-base-0' | |
# Output | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Build | |
path: build |