Skip to content

Commit

Permalink
Merge pull request #29 from JohnMurwin/feature/4-automated-build-system
Browse files Browse the repository at this point in the history
#4 Automated GameCI Build System
  • Loading branch information
JohnMurwin authored Nov 20, 2021
2 parents 95c52b4 + 5bad922 commit eb5141b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 28 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/Builds.yml
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 }}
29 changes: 1 addition & 28 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ jobs:
TestProject:
needs: LintProject
name: Run Tests in ${{ matrix.testMode }}
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -139,30 +138,4 @@ jobs:
if: always()
with:
name: Test results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.artifactsPath }}



BuildProject:
needs: TestProject
name: Build for 'matrix.platform'
runs-on: ubuntu-latest

steps:
- name: Build- test status message
run: |
echo here is where we build the project
UploadProject:
needs: BuildProject
name: Upload for 'matrix.platform'
runs-on: ubuntu-latest

steps:
- name: Tag Build Version
run: |
echo here is where we tag and release a version for the build
- name: Upload- test status message
run: |
echo here is where we upload the dev-build of the project
path: ${{ steps.tests.outputs.artifactsPath }}

0 comments on commit eb5141b

Please sign in to comment.