diff --git a/.github/workflows/Builds.yml b/.github/workflows/Builds.yml new file mode 100644 index 0000000..050d3b5 --- /dev/null +++ b/.github/workflows/Builds.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 743a235..d54a309 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -81,7 +81,6 @@ jobs: TestProject: - needs: LintProject name: Run Tests in ${{ matrix.testMode }} runs-on: ubuntu-latest strategy: @@ -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 \ No newline at end of file + path: ${{ steps.tests.outputs.artifactsPath }} \ No newline at end of file