Skip to content

Commit

Permalink
Runtime API (#115)
Browse files Browse the repository at this point in the history
* Updated to unity 2022.3.10

* runtime tools

* Debug UI added to git and Spawn Point bug fix

* Performance tuning and shader warning fixes

* Mono only build

* stash

* collider exception fix

* Struct of Arrays

* Chunk Data Tests Added

* Setter tests

* Logging and Input Refactoring

* Console improcements

* Refactor

* working

* Data refactor and queue fix

* Setter working

* Empty Collider Fix Part 3

* Update Split

* Fast Queue

* Block Hit working

* Place interaction added

* ReMesh working

* refactor

* Accessor allocation removed

* negative boundary chunk coords fixed

* Setter result

* refactor

* CI updated

* activation input removed

* input added back
  • Loading branch information
BLaZeKiLL authored Oct 4, 2023
1 parent 37dc701 commit ea568ab
Show file tree
Hide file tree
Showing 105 changed files with 3,199 additions and 1,113 deletions.
67 changes: 12 additions & 55 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ on:
workflow_dispatch:

jobs:
linux:
name: Build For Android
build:
name: Build For ${{ matrix.build.target }}
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
buildMethod:
- CodeBlaze.Editor.Build.Builder.BuildAndroidMonoRelease
- CodeBlaze.Editor.Build.Builder.BuildAndroidIL2CPPRelease
targetPlatform:
- Android
build:
- { target: Android, method: CodeBlaze.Editor.Build.Builder.BuildAndroidRelease }
- { target: StandaloneWindows64, method: CodeBlaze.Editor.Build.Builder.BuildWindowsRelease }
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -37,62 +35,21 @@ jobs:
Library-${{ matrix.targetPlatform }}-
Library-
- uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildMethod: ${{ matrix.buildMethod }}
- if: matrix.targetPlatform == 'Android'
uses: jlumbroso/[email protected]

- uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.buildMethod }}
path: |
Build
!**/*DoNotShip*/**
!**/*ButDontShipItWithYourGame*/**
windows:
name: Build For Windows
timeout-minutes: 60
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
buildMethod:
- CodeBlaze.Editor.Build.Builder.BuildWindowsMonoRelease
- CodeBlaze.Editor.Build.Builder.BuildWindowsIL2CPPRelease
targetPlatform:
- StandaloneWindows64
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true

- uses: actions/cache@v3
with:
path: Library
key:
Library-${{ matrix.targetPlatform }}-${{ hashFiles('.') }}
restore-keys: |
Library-${{ matrix.targetPlatform }}-
Library-
- uses: game-ci/unity-builder@v2
- uses: game-ci/unity-builder@v3
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildMethod: ${{ matrix.buildMethod }}
targetPlatform: ${{ matrix.build.target }}
buildMethod: ${{ matrix.build.method }}

- uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.buildMethod }}
name: Build-${{ matrix.build.target }}
path: |
Build
!**/*DoNotShip*/**
Expand Down
105 changes: 29 additions & 76 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,16 @@ on:
- "v*"

jobs:
package:
name: Unity Package
runs-on: ubuntu-latest
build:
name: Build For ${{ matrix.build.target }}
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true

- uses: actions/cache@v3
with:
path: Library
key:
Library-${{ matrix.targetPlatform }}-${{ hashFiles('.') }}
restore-keys: |
Library-${{ matrix.targetPlatform }}-
Library-
- uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneLinux64
buildMethod: CodeBlaze.Editor.Build.Builder.Package

- uses: actions/upload-artifact@v3
with:
name: Package
path: vloxyengine.unitypackage

linux:
name: Release Build For Android
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
buildMethod:
- CodeBlaze.Editor.Build.Builder.BuildAndroidMonoRelease
- CodeBlaze.Editor.Build.Builder.BuildAndroidIL2CPPRelease
targetPlatform:
- Android
build:
- { target: Android, method: CodeBlaze.Editor.Build.Builder.BuildAndroidRelease }
- { target: StandaloneWindows64, method: CodeBlaze.Editor.Build.Builder.BuildWindowsRelease }
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -66,41 +31,36 @@ jobs:
Library-${{ matrix.targetPlatform }}-
Library-
- uses: game-ci/unity-builder@v2
- if: matrix.targetPlatform == 'Android'
uses: jlumbroso/[email protected]

- uses: game-ci/unity-builder@v3
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildMethod: ${{ matrix.buildMethod }}
targetPlatform: ${{ matrix.build.target }}
buildMethod: ${{ matrix.build.method }}

- uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.buildMethod }}
name: Build-${{ matrix.build.target }}
path: |
Build
!**/*DoNotShip*/**
!**/*ButDontShipItWithYourGame*/**
windows:
name: Release Build For Windows
runs-on: windows-latest
package:
name: Unity Package
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
buildMethod:
- CodeBlaze.Editor.Build.Builder.BuildWindowsMonoRelease
- CodeBlaze.Editor.Build.Builder.BuildWindowsIL2CPPRelease
targetPlatform:
- StandaloneWindows64
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true

- uses: actions/cache@v3
with:
path: Library
Expand All @@ -109,28 +69,25 @@ jobs:
restore-keys: |
Library-${{ matrix.targetPlatform }}-
Library-
- uses: game-ci/unity-builder@v2
- uses: game-ci/unity-builder@v3
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildMethod: ${{ matrix.buildMethod }}
targetPlatform: StandaloneLinux64
buildMethod: CodeBlaze.Editor.Build.Builder.Package

- uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.buildMethod }}
path: |
Build
!**/*DoNotShip*/**
!**/*ButDontShipItWithYourGame*/**
name: Package
path: vloxyengine.unitypackage

release:
name: Release
runs-on: ubuntu-latest
needs: [package, linux, windows]
needs: [build]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -143,10 +100,8 @@ jobs:

- name: Zip artifacts
run: |
zip -r android-mono-${{ github.ref_name }}.zip artifacts/Build-CodeBlaze.Editor.Build.Builder.BuildAndroidMonoRelease/
zip -r android-il2cpp-${{ github.ref_name }}.zip artifacts/Build-CodeBlaze.Editor.Build.Builder.BuildAndroidIL2CPPRelease/
zip -r windows-mono-${{ github.ref_name }}.zip artifacts/Build-CodeBlaze.Editor.Build.Builder.BuildWindowsMonoRelease/
zip -r windows-il2cpp-${{ github.ref_name }}.zip artifacts/Build-CodeBlaze.Editor.Build.Builder.BuildWindowsIL2CPPRelease/
zip -r android-${{ github.ref_name }}.zip artifacts/Build-Android/
zip -r windows64-${{ github.ref_name }}.zip artifacts/Build-StandaloneWindows64/
- name: Move package
run: mv artifacts/Package/vloxyengine.unitypackage vloxyengine-${{ github.ref_name }}.unitypackage
Expand All @@ -173,7 +128,5 @@ jobs:
prerelease: false
files: |
vloxyengine-${{ github.ref_name }}.unitypackage
android-mono-${{ github.ref_name }}.zip
android-il2cpp-${{ github.ref_name }}.zip
windows-mono-${{ github.ref_name }}.zip
windows-il2cpp-${{ github.ref_name }}.zip
android-${{ github.ref_name }}.zip
windows64-${{ github.ref_name }}.zip
55 changes: 55 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test

on:
pull_request:
branches:
- develop
workflow_dispatch:

jobs:
test:
name: Test in ${{ matrix.testMode }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
# - playmode
- editmode
# - standalone
steps:
- uses: actions/checkout@v2
with:
lfs: true

- uses: actions/cache@v2
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}
restore-keys: |
Library-
- uses: game-ci/unity-test-runner@v3
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: ${{ matrix.testMode }} Test Results
coverageOptions: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*'

- uses: actions/upload-artifact@v2
if: always()
with:
name: Test results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.artifactsPath }}

- uses: actions/upload-artifact@v2
if: always()
with:
name: Coverage results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.coveragePath }}
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"visualstudiotoolsforunity.vstuc"
]
}
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Unity",
"type": "vstuc",
"request": "attach"
}
]
}
Loading

0 comments on commit ea568ab

Please sign in to comment.