Compare commits

...

5 Commits

Author SHA1 Message Date
65a84ecab0 wrong directory name
Some checks failed
Linux arm64 / Build (push) Failing after 1h55m3s
2024-08-08 13:06:43 +02:00
e193d05417 Update action file 2024-08-08 13:05:31 +02:00
82c7ff4895 Add action file 2024-08-08 13:04:38 +02:00
c9d94febbc add passlist for imgui 2024-08-07 19:00:40 +02:00
15625e5c30 add imgui dep 2024-08-07 19:00:02 +02:00
3 changed files with 114 additions and 1 deletions

View File

@@ -0,0 +1,52 @@
name: Linux arm64
run-name: Build And Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Build:
runs-on: ubuntu-latest
env:
XMAKE_ROOT: y
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Prepare Xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'ubuntu-xmake'
- name: Packages List
run : |
xmake show -l packages | grep -E 'require|project' > ${{ github.workspace }}/packages.txt
cat ${{ github.workspace }}/packages.txt
- name: Calc deps hash
uses: seepine/hash-files@v1
id: get-hash
with:
patterns: 'packages.txt'
- name: Packages cache
uses: actions/cache@v4
with:
path: ~/.xmake/packages
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
- name: XMake config
run: xmake f --policies=package.install_only -p linux -y
- name: Build
run: xmake
- name: Test
run: xmake test

58
assets/example.passlist Normal file
View File

@@ -0,0 +1,58 @@
passlist "Forward Passlist"
{
attachment "DepthBuffer"
{
format "PreferredDepthStencil"
}
pass "DepthPrepass"
{
impl "Depth"
{
MatPass "DepthPass"
}
depthstenciloutput "DepthBuffer"
}
attachment "ForwardOutput"
{
format "RGBA16F"
}
pass "ForwardPass"
{
impl "Forward"
output "Output" "ForwardOutput"
depthstencilinput "DepthBuffer"
depthstenciloutput "DepthBuffer"
flag "LightShadowing"
}
attachment "Gamma"
{
format "RGBA8"
}
pass "Gamma correction"
{
impl "PostProcess"
{
Shader "PostProcess.GammaCorrection"
}
input "Input" "ForwardOutput"
output "Output" "Gamma"
}
attachmentproxy "ImguiOutput" "Gamma"
pass "Imgui"
{
impl "Imgui"
input "Input" "Gamma"
output "Output" "ImguiOutput"
}
output "ImguiOutput"
}

View File

@@ -1,7 +1,10 @@
add_rules("mode.debug", "mode.release")
add_repositories("nazara-repo https://github.com/NazaraEngine/xmake-repo.git")
add_repositories("nazara-imgui-repo https://github.com/SweetId/NazaraImgui-xmake-repo")
add_requires("nazaraengine", { debug = false })
add_requires("nazaraimgui")
set_languages("c++20")
set_warnings("all")
@@ -15,7 +18,7 @@ add_includedirs("include")
target("Blitz2")
set_kind("static")
add_files("src/blitz/**.cpp", "src/server/**.cpp")
add_packages("nazaraengine", {public = true})
add_packages("nazaraimgui", "nazaraengine", {public = true})
target("Blitz2Server")
set_kind("binary")