Skip to content

Commit

Permalink
add: build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KTools2202 authored Jun 30, 2024
1 parent 104d697 commit cc86724
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:

permissions:
actions: write
contents: write

jobs:
test:
Expand Down Expand Up @@ -98,3 +99,32 @@ jobs:
run: |
echo "Artifacts Path: ${{ matrix.testMode }}-artifacts"
echo "Coverage Path: ${{ steps.tests.outputs.coveragePath }}"
build:
name: Build Unity project
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
lfs: true

- name: Cache Library Folder
uses: actions/cache@v3
with:
path: ./dist/Library
key: Library-MyProjectName-TargetPlatform
restore-keys: |
Library-MyProjectName-
Library-
- name: Build Unity project
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: './dist/'
targetPlatform: StandaloneWindows64

0 comments on commit cc86724

Please sign in to comment.