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

Master to Dev #87

Merged
merged 19 commits into from
Oct 6, 2023
Merged
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
258 changes: 129 additions & 129 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,137 +1,137 @@
name: Actions 😎
#name: Actions 😎
#
#on: [push, pull_request]

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.15f
# 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

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.

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

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.

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

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: 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: 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
# - uses: actions/upload-artifact@v2
# with:
# name: Build
# path: build