Compare commits
5 Commits
89a6219072
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 65a84ecab0 | |||
| e193d05417 | |||
| 82c7ff4895 | |||
| c9d94febbc | |||
| 15625e5c30 |
52
.gitea/workflows/linux.yaml
Normal file
52
.gitea/workflows/linux.yaml
Normal 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
58
assets/example.passlist
Normal 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"
|
||||||
|
}
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
add_rules("mode.debug", "mode.release")
|
add_rules("mode.debug", "mode.release")
|
||||||
|
|
||||||
add_repositories("nazara-repo https://github.com/NazaraEngine/xmake-repo.git")
|
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("nazaraengine", { debug = false })
|
||||||
|
add_requires("nazaraimgui")
|
||||||
|
|
||||||
set_languages("c++20")
|
set_languages("c++20")
|
||||||
set_warnings("all")
|
set_warnings("all")
|
||||||
@@ -15,7 +18,7 @@ add_includedirs("include")
|
|||||||
target("Blitz2")
|
target("Blitz2")
|
||||||
set_kind("static")
|
set_kind("static")
|
||||||
add_files("src/blitz/**.cpp", "src/server/**.cpp")
|
add_files("src/blitz/**.cpp", "src/server/**.cpp")
|
||||||
add_packages("nazaraengine", {public = true})
|
add_packages("nazaraimgui", "nazaraengine", {public = true})
|
||||||
|
|
||||||
target("Blitz2Server")
|
target("Blitz2Server")
|
||||||
set_kind("binary")
|
set_kind("binary")
|
||||||
|
|||||||
Reference in New Issue
Block a user