-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Demo support * Demo support * Project path * Print more info about the directory structure * Print more diagnostic info * repair symlink * Copy manually folders * Revert: Copy manually folders * Manually create a project * Copy without symlinks * Correct copy directory * Correct copy directory * Correct copy directory * Prepare folder * Remove demo project from assets * Remove demo project from assets * Do not copy symlinks recursive * Drop symlink * Move project to the dir * Use package * Use different unity version * package link * correct YAML file * correct YAML file * fix YAML * See the directory * Correct project path * Drop demo for now * Use package directory insted * Bring back backtrace untiy reference * Use example test * yaml formatting * yaml formatting * yaml formatting * Project path * 1 level project path * package name * Use different test action * Bring back previous configuration * Generate manually a game and add SDK to it * Correct project path * Correct project path * Downgrade version and use custom parameters * revert: Downgrade version and use custom parameters * Drop unused env variables * use cache and bring back env var * Different approach to build and test app * Changed unity version * Remove plugins directory * Clean up demo before copy-pasting it * Simplify example * Add correct unity license * Use serial * Use different unity version * Specific runner version * For testing purposes remove WaitForEndOfFrame * fix tests * fix tests * Different test * Waiter abstraction * Add missing namespace * Comp fixes * Bring back yield return to tests * Test against different unity versions * Header name * Bump 2018 version * Bump unity versions to the latest lts * Clean up the code * Try to build a game * Use serial * Build name * Divide workflow into two separated actions * Project path * Use specific untiy version * Allow dirty * Drop untiy version due to license issues and update build task name * Change triggering conditions
- Loading branch information
1 parent
dc0e304
commit 5073999
Showing
21 changed files
with
297 additions
and
84 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,51 @@ | ||
name: Build package | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Run Build for ${{ matrix.unityVersion }} ${{ matrix.unityVersion }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
projectPath: | ||
- test-package | ||
unityVersion: | ||
- 2019.4.40f1 | ||
targetPlatform: | ||
- StandaloneOSX | ||
- StandaloneWindows | ||
- StandaloneWindows64 | ||
- StandaloneLinux64 | ||
- iOS | ||
- Android | ||
- WebGL | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Environment | ||
run: | | ||
mkdir ${{ matrix.projectPath }} | ||
mv Editor Runtime Tests Android iOS Windows package.json ${{ matrix.projectPath }}/ | ||
- if: matrix.targetPlatform == 'Android' | ||
uses: jlumbroso/[email protected] | ||
|
||
- uses: game-ci/unity-builder@v4 | ||
name: Build game for platform ${{ matrix.targetPlatform }} | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | ||
with: | ||
unityVersion: ${{ matrix.unityVersion }} | ||
targetPlatform: ${{ matrix.targetPlatform }} | ||
projectPath: ${{ matrix.projectPath }}/ | ||
allowDirtyBuild: true |
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,46 @@ | ||
name: Test package | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Run Tests in ${{ matrix.testMode }} ${{ matrix.unityVersion }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
testMode: | ||
- playmode | ||
# - editmode | ||
projectPath: | ||
- test-package | ||
unityVersion: | ||
- 2022.3.19f1 | ||
- 2019.4.40f1 | ||
- 2020.3.48f1 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Environment | ||
run: | | ||
mkdir ${{ matrix.projectPath }} | ||
mv Editor Runtime Tests Android iOS Windows package.json ${{ matrix.projectPath }}/ | ||
- name: Run Tests | ||
uses: game-ci/[email protected] | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | ||
with: | ||
packageMode: true | ||
projectPath: ${{ matrix.projectPath }}/ | ||
testMode: ${{ matrix.testMode }} | ||
unityVersion: ${{ matrix.unityVersion }} | ||
coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*" |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Backtrace.Unity.Model.Waiter; | ||
using UnityEngine; | ||
|
||
namespace Backtrace.Unity.Model | ||
{ | ||
public class WaitForFrame | ||
{ | ||
private static IWaiter _waiter = CreateWaiterStrategy(); | ||
|
||
public static YieldInstruction Wait() | ||
{ | ||
return _waiter.Wait(); | ||
} | ||
|
||
private static IWaiter CreateWaiterStrategy() | ||
{ | ||
if (Application.isBatchMode) | ||
{ | ||
return new BatchModeWaiter(); | ||
} | ||
|
||
return new EndOfFrameWaiter(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 @@ | ||
using UnityEngine; | ||
|
||
namespace Backtrace.Unity.Model.Waiter | ||
{ | ||
public class BatchModeWaiter : IWaiter | ||
{ | ||
public YieldInstruction Wait() | ||
{ | ||
return null; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 @@ | ||
using UnityEngine; | ||
|
||
namespace Backtrace.Unity.Model.Waiter | ||
{ | ||
public class EndOfFrameWaiter : IWaiter | ||
{ | ||
public YieldInstruction Wait() | ||
{ | ||
return new WaitForEndOfFrame(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,10 @@ | ||
using System.Collections; | ||
using UnityEngine; | ||
|
||
namespace Backtrace.Unity.Model.Waiter | ||
{ | ||
public interface IWaiter | ||
{ | ||
YieldInstruction Wait(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.