This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
27 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Force Build π« | ||
name: Build and Deploy Working Pre-Alpha π | ||
|
||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
|
@@ -7,8 +7,60 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
testRunner: | ||
name: Test in ${{ matrix.testMode }} β¨ | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
testMode: | ||
- EditMode | ||
- PlayMode | ||
steps: | ||
- name: Checkout code β | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create LFS file list π | ||
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | ||
|
||
- name: Restore LFS cache π | ||
uses: actions/cache@v3 | ||
id: lfs-cache | ||
with: | ||
path: .git/lfs | ||
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} | ||
|
||
- name: Git LFS Pull π₯ | ||
run: | | ||
git lfs pull | ||
git add . | ||
git reset --hard | ||
- name: Restore Library cache π | ||
uses: actions/cache@v3 | ||
with: | ||
path: Library | ||
key: Library-test-project-${{ matrix.targetPlatform }} | ||
restore-keys: | | ||
Library-test-project- | ||
Library- | ||
- name: Run tests β― π | ||
uses: game-ci/[email protected] | ||
id: testRunner | ||
with: | ||
testMode: ${{ matrix.testMode }} | ||
checkName: ${{ matrix.testMode }} test results | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
projectPath: ${{ vars.projectPath }} | ||
|
||
- name: Upload Artifact π¦ | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Test results (${{ matrix.testMode }}) π | ||
path: ${{ steps.testRunner.outputs.artifactsPath }} | ||
|
||
buildWGL: | ||
name: Build for WebGL π₯οΈ | ||
needs: testRunner | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -53,8 +105,29 @@ jobs: | |
name: build-WebGL | ||
path: build/WebGL | ||
|
||
deployPages: | ||
needs: buildWGL | ||
name: Deploy to Github Pages π | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code β | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download Artifact π¦ | ||
uses: actions/[email protected] | ||
with: | ||
name: build-WebGL | ||
path: build/WebGL | ||
|
||
- name: Deploy π | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: main | ||
folder: docs/WebGL | ||
|
||
buildWindows: | ||
name: Build for Windows π₯οΈ | ||
needs: testRunner | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -98,24 +171,3 @@ jobs: | |
with: | ||
name: build-StandaloneWindows64 | ||
path: build/StandaloneWindows64 | ||
|
||
|
||
deployPages: | ||
needs: buildWGL | ||
name: Deploy to Github Pages π | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code β | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download Artifact π¦ | ||
uses: actions/[email protected] | ||
with: | ||
name: build-WebGL | ||
path: build/WebGL | ||
|
||
- name: Deploy π | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: main | ||
folder: docs/WebGL |