-
Notifications
You must be signed in to change notification settings - Fork 19
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 #81 from TeknoPT/development
Fix's and Improvements
- Loading branch information
Showing
71 changed files
with
1,001 additions
and
264 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,137 @@ | ||
name: Actions 😎 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
buildAndTestForLinuxBasedPlatforms: | ||
name: Build for ${{ matrix.targetPlatform }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
projectPath: | ||
- test-project | ||
unityVersion: | ||
- 2021.3.15f1 | ||
targetPlatform: | ||
- StandaloneLinux64 # Build a Linux 64-bit standalone. | ||
- iOS # Build an iOS player. | ||
- Android # Build an Android player. | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ matrix.projectPath }}/Library | ||
key: | ||
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ | ||
hashFiles(matrix.projectPath) }} | ||
restore-keys: | | ||
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- | ||
Library-${{ matrix.projectPath }}- | ||
Library- | ||
- uses: game-ci/unity-builder@v2 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
with: | ||
projectPath: ${{ matrix.projectPath }} | ||
unityVersion: ${{ matrix.unityVersion }} | ||
targetPlatform: ${{ matrix.targetPlatform }} | ||
customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build | ||
path: build | ||
|
||
buildForWindowsBasedPlatforms: | ||
name: Build for ${{ matrix.targetPlatform }} | ||
runs-on: windows-2019 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
projectPath: | ||
- test-project | ||
unityVersion: | ||
- 2021.3.15f1 | ||
targetPlatform: | ||
- StandaloneWindows64 # Build a Windows 64-bit standalone. | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ matrix.projectPath }}/Library | ||
key: | ||
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ | ||
hashFiles(matrix.projectPath) }} | ||
restore-keys: | | ||
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- | ||
Library-${{ matrix.projectPath }}- | ||
Library- | ||
- uses: game-ci/unity-builder@v2 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
with: | ||
projectPath: ${{ matrix.projectPath }} | ||
unityVersion: ${{ matrix.unityVersion }} | ||
targetPlatform: ${{ matrix.targetPlatform }} | ||
customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build | ||
path: build | ||
|
||
buildForMacOSBasedPlatforms: | ||
name: Build for ${{ matrix.targetPlatform }} | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
projectPath: | ||
- test-project | ||
unityVersion: | ||
- 2021.3.15f1 | ||
targetPlatform: | ||
- StandaloneOSX # Build a macOS standalone. | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ matrix.projectPath }}/Library | ||
key: | ||
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ | ||
hashFiles(matrix.projectPath) }} | ||
restore-keys: | | ||
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- | ||
Library-${{ matrix.projectPath }}- | ||
Library- | ||
- uses: game-ci/unity-builder@v2 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
with: | ||
projectPath: ${{ matrix.projectPath }} | ||
unityVersion: ${{ matrix.unityVersion }} | ||
targetPlatform: ${{ matrix.targetPlatform }} | ||
customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue' | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build | ||
path: build |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.