-
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.
Merge pull request #29 from JohnMurwin/feature/4-automated-build-system
#4 Automated GameCI Build System
- Loading branch information
Showing
2 changed files
with
54 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Automated Build Pipeline | ||
# Uses: GameCI, | ||
# From: GameCI, and Fathom7 | ||
|
||
name: Automated Builds | ||
on: | ||
release: | ||
types: [published] | ||
pull_request: | ||
types: [opened, synchronize, reopened, edited] | ||
|
||
jobs: | ||
BuildProject: | ||
name: Build for ${{ matrix.targetPlatform }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
targetPlatform: | ||
- StandaloneOSX # Build a macOS standalone (Intel 64-bit). | ||
- StandaloneWindows64 # Build a Windows 64-bit standalone. | ||
- StandaloneLinux64 # Build a Linux 64-bit standalone. | ||
- WebGL # WebGL. | ||
steps: | ||
# First checkout the repo with both LFS and FetchDepth 0 for full commit | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
# Cache project for future speed | ||
- name: Cache Project Library for next Build | ||
uses: actions/cache@v2 | ||
with: | ||
path: NQueensSimulation/Library | ||
key: Library-${{ matrix.targetPlatform }} | ||
restore-keys: Library- | ||
|
||
# Use GameCI to build project with TargetPlatform Matrix | ||
- uses: game-ci/unity-builder@v2 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
with: | ||
projectPath: NQueensSimulation | ||
targetPlatform: ${{ matrix.targetPlatform }} | ||
versioning: Semantic | ||
|
||
# Upload Build Artifacts *for PR's* | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build-${{ matrix.targetPlatform }} | ||
path: build/${{ matrix.targetPlatform }} |
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