Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Slashlust/slashlust into 3-…
Browse files Browse the repository at this point in the history
…modelo-do-player
  • Loading branch information
LucasVinicius314 committed Sep 1, 2022
2 parents f7e0864 + f52f08b commit 71b105a
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/activation.yaml
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 }}
75 changes: 75 additions & 0 deletions .github/workflows/build.yaml
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 }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
#
/[Ll]ibrary/
/[Ll]ibrary/**
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
Expand Down Expand Up @@ -70,3 +70,5 @@ crashlytics-build.properties
# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*

!/[Ll]ibrary/.gitkeep
Empty file added Library/.gitkeep
Empty file.
5 changes: 4 additions & 1 deletion ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes: []
m_Scenes:
- enabled: 1
path: Assets/Scenes/MainScene.unity
guid: 0f1dc7bffead23c45bcef24d3ccf62b5
m_configObjects: {}
1 change: 1 addition & 0 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ PlayerSettings:
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: com.DefaultCompany.Slashlust
Standalone: com.Slashlust.Slashlust
buildNumber:
Standalone: 0
iPhone: 0
Expand Down

0 comments on commit 71b105a

Please sign in to comment.