Skip to content

Commit

Permalink
🫦 [ME-28] Motivation Branch
Browse files Browse the repository at this point in the history
🫦 [ME-28] Motivation Branch
  • Loading branch information
wobbier authored Feb 23, 2024
2 parents 7de012e + 2c18036 commit 3e77681
Show file tree
Hide file tree
Showing 438 changed files with 30,382 additions and 23,616 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/UWP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,33 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
os: [windows-2022]
configuration:
- Debug
- Release
- Retail
type:
- Game_UWP
include:
- os: windows-2019
- os: windows-2022
shell: cmd
compiler: cl
target: Windows

steps:
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2

- name: Install Mono
shell: cmd
run: choco install mono --ignore-checksums

- name: Setup dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: "5.0.100"

- uses: suisei-cn/actions-download-file@v1
- uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0
id: downloadfile
name: Grab the project setup file
with:
Expand All @@ -51,23 +56,23 @@ jobs:

- name: Compile Tools
shell: cmd
run: msbuild /property:Configuration="Editor_Release"
run: msbuild EmptyProject.sln /property:Configuration="Editor_Release"

- name: Compile Project
shell: cmd
run: msbuild /property:Configuration="${{matrix.type}}_${{matrix.configuration}}"
run: msbuild EmptyProject.sln /property:Configuration="${{matrix.type}}_${{matrix.configuration}}"

- name: Copy Assets
shell: cmd
run: call CopyAssets.bat

- name: Copy Editor Assets
shell: cmd
shell: pwsh
continue-on-error: true
run: |
robocopy ".build/Release/Assets" ".build\\Editor_Release\\Assets" *.* /w:0 /r:1 /v /E
robocopy "Engine/Tools" ".build\\Editor_Release\\Tools" Optick.exe /w:0 /r:1 /v /E
robocopy "Engine/Tools/Win64" ".build\\Editor_Release\\Tools\\Win64" *.* /w:0 /r:1 /v /E
robocopy ".build/Release/Assets" ".build\\Editor_Release\\Assets" *.* /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
robocopy "Engine/Tools" ".build\\Editor_Release\\Tools" Optick.exe /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
robocopy "Engine/Tools/Win64" ".build\\Editor_Release\\Tools\\Win64" *.* /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
- name: Cook Assets
shell: cmd
Expand All @@ -77,13 +82,13 @@ jobs:
cd ../../
- name: Copy Cooked Assets
shell: cmd
shell: pwsh
continue-on-error: true
run: |
robocopy ".build/Editor_Release/Assets" ".build\\${{matrix.type}}_${{matrix.configuration}}\\Assets" *.* /w:0 /r:1 /v /E
robocopy ".build/Editor_Release/Assets" ".build\\${{matrix.type}}_${{matrix.configuration}}\\Assets" *.* /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
- name: Archive Build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Heap v${{github.run_number}} - ${{matrix.type}} - ${{matrix.configuration}}
path: |
Expand Down
141 changes: 76 additions & 65 deletions .github/workflows/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,34 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
buildconfig: [Game_Win64_Release, Editor_Release]
os: [windows-2022]
buildconfig: [Game_Win64, Editor]
configuration:
- Debug
- Release
- Retail
include:
- os: windows-2019
- os: windows-2022
shell: cmd
compiler: cl
target: Windows

steps:
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64

- name: Install Mono
shell: cmd
run: choco install mono --ignore-checksums

- name: Setup dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: "5.0.100"

- uses: suisei-cn/actions-download-file@v1
- uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0
id: downloadfile
name: Grab the project setup file
with:
Expand All @@ -42,102 +52,103 @@ jobs:
run: call NewProjectSetup.bat EmptyProject ${{github.ref_name}}

- name: Compile Tools
if: ${{ matrix.buildconfig == 'Game_Win64_Release' }}
if: ${{ matrix.buildconfig == 'Game_Win64' }}
shell: cmd
run: msbuild EmptyProject.sln /property:Configuration="Editor_Release"

- name: Compile Project
shell: cmd
run: msbuild EmptyProject.sln /property:Configuration="${{matrix.buildconfig}}"
run: msbuild EmptyProject.sln /property:Configuration="${{matrix.buildconfig}}_${{matrix.configuration}}"

- name: Copy Assets
shell: cmd
run: call CopyAssets.bat

- name: Copy Editor Assets
shell: cmd
shell: pwsh
continue-on-error: true
run: |
robocopy ".build/Release/Assets" ".build\\Editor_Release\\Assets" *.* /w:0 /r:1 /v /E
robocopy "Engine/Tools" ".build\\Editor_Release\\Engine\\Tools" *.* /w:0 /r:1 /v /E
robocopy ".build/Release/Assets" ".build\\Editor_Release\\Assets" *.* /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
robocopy "Engine/Tools" ".build\\Editor_Release\\Engine\\Tools" *.* /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
- name: Archive Editor
if: ${{ matrix.buildconfig == 'Editor_Release' }}
uses: actions/upload-artifact@v2
if: ${{ matrix.buildconfig == 'Editor' }}
uses: actions/upload-artifact@v4
with:
name: EmptyProject v${{github.run_number}} - Editor
name: EmptyProject v${{github.run_number}} - Editor ${{ matrix.configuration }}
path: |
.build/${{matrix.buildconfig}}
!.build/${{matrix.buildconfig}}/AppX
!.build/${{matrix.buildconfig}}/Tools/**/*.*
!.build/${{matrix.buildconfig}}/*.lib
!.build/${{matrix.buildconfig}}/*.pdb
!.build/${{matrix.buildconfig}}/*.exp
!.build/${{matrix.buildconfig}}/*.log
.build/${{matrix.buildconfig}}/Tools/Optick.exe
.build/${{matrix.buildconfig}}/Tools/Win64/*.*
.build/${{matrix.buildconfig}}_${{matrix.configuration}}
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/AppX
!.build${{matrix.buildconfig}}_${{matrix.configuration}}/Tools/**/*.*
!.build${{matrix.buildconfig}}_${{matrix.configuration}}/*.lib
!.build${{matrix.buildconfig}}_${{matrix.configuration}}/*.pdb
!.build${{matrix.buildconfig}}_${{matrix.configuration}}/*.exp
!.build${{matrix.buildconfig}}_${{matrix.configuration}}/*.log
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Tools/Optick.exe
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Tools/Win64/*.*
- name: Cook Assets
if: ${{ matrix.buildconfig == 'Game_Win64_Release' }}
if: ${{ matrix.buildconfig == 'Game_Win64' }}
shell: cmd
run: |
cd ".build/Editor_Release/"
call Havana.exe -CompileAssets
cd ../../
- name: Copy Cooked Assets
if: ${{ matrix.buildconfig == 'Game_Win64_Release' }}
shell: cmd
if: ${{ matrix.buildconfig == 'Game_Win64' }}
shell: pwsh
continue-on-error: true
run: |
robocopy ".build/Editor_Release/Assets" ".build\\Game_Win64_Release\\Assets" *.* /w:0 /r:1 /v /E
robocopy ".build/Editor_Release/Assets" ".build\\Game_Win64_${{matrix.configuration}}\\Assets" *.* /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
- name: Archive Build
if: ${{ matrix.buildconfig == 'Game_Win64_Release' }}
uses: actions/upload-artifact@v2
if: ${{ matrix.buildconfig == 'Game_Win64' }}
uses: actions/upload-artifact@v4
with:
name: EmptyProject v${{github.run_number}} - ${{matrix.buildconfig}}
name: EmptyProject v${{github.run_number}} - ${{matrix.buildconfig}}_${{matrix.configuration}}
path: |
.build/${{matrix.buildconfig}}
.build/${{matrix.buildconfig}}/Assets
!.build/${{matrix.buildconfig}}/AppX
!.build/${{matrix.buildconfig}}/*.lib
!.build/${{matrix.buildconfig}}/*.pdb
!.build/${{matrix.buildconfig}}/*.exp
!.build/${{matrix.buildconfig}}/*.log
!.build/${{matrix.buildconfig}}/**/*.png
!.build/${{matrix.buildconfig}}/**/*.jpg
!.build/${{matrix.buildconfig}}/**/*.frag
!.build/${{matrix.buildconfig}}/**/*.vert
!.build/${{matrix.buildconfig}}/**/*.var
!.build/${{matrix.buildconfig}}/**/*.sh
.build/${{matrix.buildconfig}}_${{matrix.configuration}}
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Assets
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/AppX
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.lib
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.pdb
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.exp
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.log
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/**/*.png
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/**/*.jpg
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/**/*.frag
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/**/*.vert
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/**/*.var
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/**/*.sh
- name: Copy Tools Assets
shell: cmd
shell: pwsh
continue-on-error: true
run: |
robocopy "Engine/Tools/HUB/Assets" ".build\\Editor_Release\\Assets" *.* /w:0 /r:1 /v /E
robocopy "Engine/Tools/HUB" ".build\\Editor_Release" *.exe /w:0 /r:1 /v /E
robocopy "Engine/Tools/HUB/Assets" ".build\\Editor_Release\\Assets" *.* /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
robocopy "Engine/Tools/HUB" ".build\\Editor_Release" *.exe /w:0 /r:1 /v /E ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
- name: Archive Tools
if: ${{ matrix.buildconfig == 'Editor_Release' }}
uses: actions/upload-artifact@v2
if: ${{ matrix.buildconfig == 'Editor' }}
uses: actions/upload-artifact@v4
with:
name: HUB v${{github.run_number}}
name: HUB v${{github.run_number}} ${{ matrix.configuration }}
path: |
.build/${{matrix.buildconfig}}/HUB.exe
.build/${{matrix.buildconfig}}/Assets/Close.png
.build/${{matrix.buildconfig}}/Assets/Minimize.png
.build/${{matrix.buildconfig}}/Assets/VS.png
.build/${{matrix.buildconfig}}/Assets/LOGO.png
.build/${{matrix.buildconfig}}/shaderc.exe
.build/${{matrix.buildconfig}}/texturec.exe
.build/${{matrix.buildconfig}}/*.dll
!.build/${{matrix.buildconfig}}/AppX
!.build/${{matrix.buildconfig}}/Tools/**/*.*
!.build/${{matrix.buildconfig}}/*.lib
!.build/${{matrix.buildconfig}}/*.pdb
!.build/${{matrix.buildconfig}}/*.exp
!.build/${{matrix.buildconfig}}/*.log
.build/${{matrix.buildconfig}}/Tools/Optick.exe
.build/${{matrix.buildconfig}}/Tools/Win64/*.*
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/HUB.exe
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Assets/Close.png
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Assets/Minimize.png
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Assets/VS.png
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Assets/GEN.png
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Assets/LOGO.png
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/shaderc.exe
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/texturec.exe
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.dll
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/AppX
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Tools/**/*.*
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.lib
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.pdb
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.exp
!.build/${{matrix.buildconfig}}_${{matrix.configuration}}/*.log
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Tools/Optick.exe
.build/${{matrix.buildconfig}}_${{matrix.configuration}}/Tools/Win64/*.*
14 changes: 7 additions & 7 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: macOS

on:
push:
branches: [master]
branches: [master, motivation]
pull_request:
branches: [master]
branches: [master, motivation]

workflow_dispatch:

Expand All @@ -15,7 +15,7 @@ jobs:
platform:
- macOS
xcode:
- ^12
- ^11
configuration:
- Debug
- Release
Expand All @@ -25,18 +25,18 @@ jobs:
runs-on: macos-11

steps:
- uses: suisei-cn/actions-download-file@v1
- uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0
id: downloadfile
name: Grab the project setup file
with:
url: "https://raw.githubusercontent.com/wobbier/MitchEngine/${{github.ref_name}}/Tools/NewProjectSetup.command"
target: ./

- name: Setup dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: "5.0.100"

- name: Generate a new project
shell: bash
run: sh NewProjectSetup.command EmptyProject ${{github.ref_name}}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
run: echo todo

- name: Archive
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: EmptyProject - ${{matrix.type}} - ${{matrix.buildconfig}}
path: |
Expand Down
7 changes: 0 additions & 7 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
path = ThirdParty/Bullet
url = https://github.com/bulletphysics/bullet3.git
ignore = dirty
[submodule "Tools/premake-winrt"]
path = Tools/premake-winrt
url = https://github.com/wobbier/premake-winrt.git
ignore = dirty
[submodule "ThirdParty/Assimp"]
path = ThirdParty/Assimp
url = https://github.com/assimp/assimp
tag = v4.1.0
ignore = dirty
[submodule "ThirdParty/PerlinNoise"]
path = ThirdParty/PerlinNoise
url = https://github.com/Reputeless/PerlinNoise.git
[submodule "ThirdParty/ImGui"]
path = ThirdParty/ImGui
url = https://github.com/ocornut/imgui
Expand Down
Loading

0 comments on commit 3e77681

Please sign in to comment.