Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4 Automated GameCI Build System #29

Merged
merged 15 commits into from
Nov 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}