-
-
Notifications
You must be signed in to change notification settings - Fork 25
Enable CrossPlatform Builds and CI #462
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
Draft
MathewBensonCode
wants to merge
3
commits into
JeanPhilippeKernel:develop
Choose a base branch
from
MathewBensonCode:compile_on_linux
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+397
−325
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,55 @@ | ||
name: ZEngine Cmake Linux Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
configuration: | ||
type: string | ||
default: 'Debug' | ||
targetFramework: | ||
type: string | ||
default: 'net8.0' | ||
|
||
jobs: | ||
Linux-Build: | ||
name: cmake-build-linux-${{ inputs.configuration }} | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download the Microsoft repository GPG keys | ||
run: wget -q https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb | ||
|
||
- name: Register the Microsoft repository GPG keys | ||
run: sudo dpkg -i packages-microsoft-prod.deb | ||
|
||
- name: Install LLVM-20 | ||
run: | | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 20 | ||
|
||
- name: Update the list of packages after we added packages.microsoft.com | ||
run: sudo apt-get update | ||
|
||
- name: Install development library | ||
run: sudo apt-get install libasound2-dev libgl1-mesa-dev libpulse-dev libdbus-1-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev libxss-dev libxt-dev libxxf86vm-dev cmake apt-transport-https software-properties-common gcc g++ powershell clang-format-20 glslang-tools libwayland-dev libxkbcommon-dev | ||
|
||
- name: CMake Build | ||
run: .\Scripts\BuildEngine.ps1 -Configurations ${{inputs.configuration}} | ||
shell: pwsh | ||
|
||
- name: Publish Build Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Build-linux-${{inputs.configuration}} | ||
path: | | ||
Panzerfaust/bin/${{inputs.configuration}}/publish/ | ||
Result.Linux.x64.${{inputs.configuration}}/__externals/Vulkan-Loader/loader/ | ||
Result.Linux.x64.${{inputs.configuration}}/ZEngine/tests/ | ||
Panzerfaust/bin/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.CSharp.resources.dll | ||
!Panzerfaust/bin/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll | ||
!Panzerfaust/bin/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.resources.dll | ||
!Panzerfaust/bin/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.Scripting.resources.dll |
This file contains hidden or 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,29 @@ | ||
# Deploy for linux | ||
# | ||
name: linux Deploy Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
targetFramework: | ||
type: string | ||
required: true | ||
configuration: | ||
type: string | ||
default: 'Release' | ||
|
||
jobs: | ||
deploy: | ||
name: deploy-linux-${{ inputs.configuration }} | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: Result.Linux.x64.${{ inputs.configuration }} | ||
name: Build-linux-Release | ||
|
||
- name: Publish Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-${{ inputs.configuration }} | ||
path: Panzerfaust/bin/${{ inputs.configuration }}/${{inputs.targetFramework}}/publish/ |
This file contains hidden or 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,30 @@ | ||
# Run tests for linux | ||
# | ||
name: linux Test Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
configuration: | ||
type: string | ||
default: 'Debug' | ||
|
||
jobs: | ||
test: | ||
name: test-linux-${{ inputs.configuration }} | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Build-linux-${{ inputs.configuration }} | ||
|
||
- name: Update access permission of ZEngineTests | ||
run: chmod +x ./Result.Linux.x64.${{ inputs.configuration }}/ZEngine/tests/ZEngineTests | ||
|
||
- name: Run Tests | ||
run: .\Scripts\RunTests.ps1 -Configurations ${{ inputs.configuration }} | ||
shell: pwsh |
This file contains hidden or 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 |
---|---|---|
@@ -1,59 +1,35 @@ | ||
# @JeanPhilippeKernel : Disabled because we only support Windows as platform for now | ||
# | ||
name: ZEngine Linux Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_call: | ||
inputs: | ||
targetFramework: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
Linux-Build: | ||
runs-on: ubuntu-latest | ||
cmake-build: | ||
strategy: | ||
matrix: | ||
buildConfiguration: [Debug, Release] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Checkout submodules | ||
# run: git submodule update --init --recursive | ||
|
||
# - name: Install development library | ||
# run: sudo apt-get install libasound2-dev libgl1-mesa-dev libpulse-dev libdbus-1-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev libxss-dev libxt-dev libxxf86vm-dev | ||
|
||
# - name: Install CMake | ||
# uses: jwlawson/[email protected] | ||
# with: | ||
# cmake-version: '3.20.x' | ||
|
||
# - name: Install pre-requisite packages. | ||
# run: sudo apt-get install -y wget apt-transport-https software-properties-common | ||
|
||
# - name: Download the Microsoft repository GPG keys | ||
# run: wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb | ||
|
||
# - name: Register the Microsoft repository GPG keys | ||
# run: sudo dpkg -i packages-microsoft-prod.deb | ||
|
||
# - name: Update the list of packages after we added packages.microsoft.com | ||
# run: sudo apt-get update | ||
|
||
# - name: Install PowerShell | ||
# run: sudo apt-get install -y powershell | ||
|
||
# - name: Add GCC Toolchain repository | ||
# run: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
|
||
# - name: Install GCC compiler | ||
# run: sudo apt install -y gcc-11 | ||
|
||
# - name: Install G++ compiler | ||
# run: sudo apt install -y g++-11 | ||
buildConfiguration: [Debug, Release] | ||
uses: ./.github/workflows/job-cmakebuild-linux.yml | ||
with: | ||
configuration: ${{matrix.buildConfiguration}} | ||
targetframework: ${{inputs.targetFramework}} | ||
|
||
test: | ||
needs: cmake-build | ||
strategy: | ||
matrix: | ||
testConfiguration: [Debug, Release] | ||
uses: ./.github/workflows/job-test-linux.yml | ||
with: | ||
configuration: ${{matrix.testConfiguration}} | ||
|
||
deploy: | ||
needs: test | ||
uses: ./.github/workflows/job-deploy-linux.yml | ||
with: | ||
configuration: Release | ||
targetframework: ${{inputs.targetFramework}} | ||
|
||
# - name: CMake Build | ||
# run: .\Scripts\BuildEngine.ps1 -Configurations ${{matrix.buildConfiguration}} | ||
# shell: pwsh |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason ?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a compilation issue that would come up after running clang-format in ImGUIRenderer.cpp where the ImGuizmo header when included before the imgui header would break as the imgui headers need to come in first.