-
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 branch '3-modelo-do-player' of https://github.com/Slashlust/sla…
…shlust into 3-modelo-do-player
- Loading branch information
Showing
6 changed files
with
105 additions
and
2 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,22 @@ | ||
name: Acquire activation file | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
activation: | ||
name: Request manual activation file 🔑 | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Request manual activation file | ||
- name: Request manual activation file | ||
id: getManualLicenseFile | ||
uses: game-ci/unity-request-activation-file@v2 | ||
with: | ||
unityVersion: 2021.3.6f1 | ||
# Upload artifact (Unity_v20XX.X.XXXX.alf) | ||
- name: Expose as artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ steps.getManualLicenseFile.outputs.filePath }} | ||
path: ${{ steps.getManualLicenseFile.outputs.filePath }} |
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,75 @@ | ||
name: Build project | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
buildForAllSupportedPlatforms: | ||
name: Build for ${{ matrix.targetPlatform }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
targetPlatform: | ||
# - StandaloneOSX # Build a macOS standalone (Intel 64-bit). | ||
# - StandaloneWindows # Build a Windows standalone. | ||
- StandaloneWindows64 # Build a Windows 64-bit standalone. | ||
# - StandaloneLinux64 # Build a Linux 64-bit standalone. | ||
# - iOS # Build an iOS player. | ||
- Android # Build an Android .apk standalone app. | ||
# - WebGL # WebGL. | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
# Cache | ||
- uses: actions/cache@v2 | ||
with: | ||
path: Library | ||
key: Library-${{ matrix.targetPlatform }} | ||
restore-keys: Library- | ||
|
||
# Builder | ||
- uses: game-ci/unity-builder@v2 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
with: | ||
targetPlatform: ${{ matrix.targetPlatform }} | ||
|
||
# Artifact upload | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build-${{ matrix.targetPlatform }} | ||
path: build/${{ matrix.targetPlatform }} | ||
|
||
# Windows build zip | ||
- uses: montudor/action-zip@v1 | ||
if: matrix.targetPlatform == 'StandaloneWindows64' | ||
with: | ||
args: zip -qq -r build/StandaloneWindows64.zip build/StandaloneWindows64 | ||
|
||
# Windows artifact release | ||
- name: Release with Notes | ||
uses: softprops/action-gh-release@v1 | ||
if: matrix.targetPlatform == 'StandaloneWindows64' | ||
with: | ||
files: build/StandaloneWindows64.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Android artifact release | ||
- name: Release with Notes | ||
uses: softprops/action-gh-release@v1 | ||
if: matrix.targetPlatform == 'Android' | ||
with: | ||
files: build/Android/Android.apk | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Empty file.
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