windows build
This commit is contained in:
parent
6fc5c25a2e
commit
e746642439
1 changed files with 30 additions and 11 deletions
41
.github/workflows/main.yml
vendored
41
.github/workflows/main.yml
vendored
|
@ -3,6 +3,34 @@
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test my project 🧪
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Checkout
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
# 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 my project ✨
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -21,16 +49,6 @@ jobs:
|
|||
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
|
||||
|
@ -39,7 +57,8 @@ jobs:
|
|||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||
with:
|
||||
targetPlatform: WebGL
|
||||
targetPlatform: StandaloneWindows64
|
||||
allowDirtyBuild: true
|
||||
|
||||
# Output
|
||||
- uses: actions/upload-artifact@v3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue