Compare commits

33 Commits

Author SHA1 Message Date
d6bb4b6aea after xmake
Some checks failed
Linux arm64 / Build (push) Failing after 12m21s
2024-09-28 11:18:22 +00:00
bb6174d417 install python
Some checks failed
Linux arm64 / Build (push) Failing after 2m13s
2024-09-28 11:15:21 +00:00
3c939d55aa debug xmake
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-09-27 18:24:38 +00:00
9966be50c1 force 4.2
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-09-27 18:22:57 +00:00
81b8ebb820 xmake root
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-09-27 18:21:04 +00:00
1a2d7a22af xmake
Some checks failed
Linux arm64 / Build (push) Failing after 1m19s
2024-09-27 18:18:54 +00:00
959e38eb78 bare metal
Some checks failed
Linux arm64 / Build (push) Failing after 2m39s
2024-09-27 18:14:10 +00:00
8e3c7469aa embed pck
Some checks are pending
Linux arm64 / Build (push) Waiting to run
2024-08-13 20:25:38 +02:00
2765228b93 downgrade thing
All checks were successful
Linux arm64 / Build (push) Successful in 1m28s
2024-08-13 20:22:28 +02:00
297a5b89ec upload artifact
Some checks failed
Linux arm64 / Build (push) Failing after 1m30s
2024-08-13 20:19:39 +02:00
8faae72ae7 bon
All checks were successful
Linux arm64 / Build (push) Successful in 41s
2024-08-13 20:15:36 +02:00
1a789ab5b2 gengengen
All checks were successful
Linux arm64 / Build (push) Successful in 41s
2024-08-13 20:06:11 +02:00
d4bf1c3da7 yes baby
All checks were successful
Linux arm64 / Build (push) Successful in 41s
2024-08-13 19:59:00 +02:00
1c855d1b77 add import-asset rule
All checks were successful
Linux arm64 / Build (push) Successful in 34s
2024-08-13 19:58:16 +02:00
daf382e35e add debug flags 2024-08-13 19:58:16 +02:00
878f2fd801 last try
All checks were successful
Linux arm64 / Build (push) Successful in 33s
2024-08-13 18:44:53 +02:00
2f86ef7771 better maybe
Some checks failed
Linux arm64 / Build (push) Failing after 43m5s
2024-08-13 17:59:40 +02:00
631d3059f2 fix download timeout
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-08-13 17:29:44 +02:00
dd38a03165 ttttest
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-08-13 17:12:54 +02:00
6307cd8ed8 update setup godot version
Some checks failed
Linux arm64 / Build (push) Failing after 33m34s
2024-08-13 16:35:51 +02:00
e1a072d6c3 action: add templates
Some checks failed
Linux arm64 / Build (push) Has been cancelled
2024-08-13 15:05:41 +02:00
f26e2df0b2 yes
Some checks failed
Linux arm64 / Build (push) Failing after 5m25s
2024-08-13 14:58:37 +02:00
abc3278a04 yes
All checks were successful
Linux arm64 / Build (push) Successful in 12s
2024-08-11 18:49:22 +02:00
4acbde4606 cool
All checks were successful
Linux arm64 / Build (push) Successful in 12s
2024-08-11 18:44:50 +02:00
26e7badaaa test env
All checks were successful
Linux arm64 / Build (push) Successful in 13s
2024-08-11 18:38:22 +02:00
e222e01225 just Linux
All checks were successful
Linux arm64 / Build (push) Successful in 12s
2024-08-11 18:26:57 +02:00
8d728d8f55 retest
All checks were successful
Linux arm64 / Build (push) Successful in 12s
2024-08-11 18:22:26 +02:00
442a4d4e5e jesuisuncaca
All checks were successful
Linux arm64 / Build (push) Successful in 32s
2024-08-11 18:18:00 +02:00
011254d6ae mieux
All checks were successful
Linux arm64 / Build (push) Successful in 31s
2024-08-11 18:17:06 +02:00
7bb2cfdc20 deja vu
All checks were successful
Linux arm64 / Build (push) Successful in 33s
2024-08-11 18:14:51 +02:00
bb46ac92ae test
All checks were successful
Linux arm64 / Build (push) Successful in 32s
2024-08-11 18:04:47 +02:00
08b2f79529 change package cache path 2024-08-11 17:39:34 +02:00
5858ea5cbe global xmake package cache 2024-08-11 17:21:17 +02:00
5 changed files with 81 additions and 36 deletions

View File

@@ -1,43 +1,60 @@
name: Linux arm64 name: Linux arm64
run-name: Build And Test run-name: Build And Test
on: on: [push]
push:
branches: env:
- main SEGMENT_DOWNLOAD_TIMEOUT_MINS: 60
pull_request: XMAKE_ROOT: "y"
branches:
- main
jobs: jobs:
Build: Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out repository code - name: 🧾 Check out
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Packages List - name: 📦 Packages cache
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 uses: actions/cache@v4
with: with:
path: ~/.xmake/packages path: ${{ github.workspace }}/build/.packages
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }} key: ${{ runner.os }}-xmake_cache
- name: XMake config - name: 🤖 Setup Godot
run: xmake f --policies=package.install_only -p linux -y uses: chickensoft-games/setup-godot@v2
with:
version: 4.2.2
use-dotnet: false
include-templates: true
- name: Build - name: 🍗 Setup XMake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'xmake-ubuntu'
- name: 🐍 Install Python
run: xmake require --extra={system=false} -y python
- name: ⚙️ XMake config
# TODO: change that to release
run: xmake f -m debug -p linux -y -v
- name: 🏗️ Build
run: xmake run: xmake
- name: Test - name: 🧐 Test
run: xmake test run: xmake test
- name: 🚀 Publish
# the first command is needed only for the template
run: |
xmake gengdextension
xmake import-assets
xmake p
- uses: actions/upload-artifact@v3
with:
name: Debug Build
path: ${{ github.workspace }}/publish

View File

@@ -82,7 +82,7 @@ encrypt_directory=false
custom_template/debug="" custom_template/debug=""
custom_template/release="" custom_template/release=""
debug/export_console_wrapper=1 debug/export_console_wrapper=1
binary_format/embed_pck=false binary_format/embed_pck=true
texture_format/bptc=true texture_format/bptc=true
texture_format/s3tc=true texture_format/s3tc=true
texture_format/etc=false texture_format/etc=false

View File

@@ -16,7 +16,7 @@ add_rules("mode.debug", "mode.release")
set_languages("c++20") set_languages("c++20")
-- use latest 4.x version by default -- use latest 4.x version by default
add_requires("godotcpp4") add_requires("godotcpp4 4.2")
includes("tasks.lua") includes("tasks.lua")

View File

@@ -1,3 +1,9 @@
if is_mode("debug") then
add_defines("DEBUG_ENABLED")
end
-- more on https://xmake.io/#/manual/project_target -- more on https://xmake.io/#/manual/project_target
target(PROJECT_NAME) target(PROJECT_NAME)
set_kind("shared") set_kind("shared")
@@ -35,8 +41,9 @@ target(PROJECT_NAME)
on_run( on_run(
(function(godot_project_folder) (function(godot_project_folder)
return function(target) return function(target)
os.execv("echo", {"godot --path", godot_project_folder}) local cmd = format("godot --path %s", godot_project_folder)
os.exec("godot --path " .. godot_project_folder) os.execv("echo", {cmd})
os.exec(cmd)
end end
end)(GODOT_PROJECT_FOLDER) end)(GODOT_PROJECT_FOLDER)
) )

View File

@@ -6,7 +6,7 @@
-- target_platform: the target platform, like "Windows Desktop" -- target_platform: the target platform, like "Windows Desktop"
-- name: the export execute name, it will be endswith ".exe" on windows -- name: the export execute name, it will be endswith ".exe" on windows
task("export") task("export")
on_run((function(godot_project_folder, publish_folder) on_run((function(godot_project_folder, publish_folder, project_name)
return function(target_platform) return function(target_platform)
local name = godot_project_folder local name = godot_project_folder
@@ -35,13 +35,15 @@ task("export")
local godot_project_file = path.join(godot_project_folder, "project.godot") local godot_project_file = path.join(godot_project_folder, "project.godot")
local export_path = path.absolute(path.join(publish_folder, name)) local export_path = path.absolute(path.join(publish_folder, project_name))
os.execv("echo", {"godot", godot_project_file, export_mode, target_platform, export_path}) local cmd = format("godot %s --headless --%s %s %s", godot_project_file, export_mode, "\"" .. target_platform .. "\"", export_path)
os.exec("godot %s --headless --%s %s %s", godot_project_file, export_mode, "\"" .. target_platform .. "\"", export_path)
os.execv("echo", {cmd})
os.exec(cmd)
end end
end)(GODOT_PROJECT_FOLDER, PUBLISH_FOLDER)) end)(GODOT_PROJECT_FOLDER, PUBLISH_FOLDER, PROJECT_NAME))
task_end() task_end()
@@ -202,3 +204,22 @@ android.release.arm64 = "res://lib/libProjectName.android_release_arm64.so"
description = "Generate gdextension file", description = "Generate gdextension file",
} }
task_end() task_end()
task("import-assets")
on_run((function(godot_project_folder, project_name)
return function ()
local godot_project_file = path.join(godot_project_folder, "project.godot")
local cmd = format("godot --headless --import %s", godot_project_file)
os.execv("echo", {cmd})
os.exec(cmd)
end
end)(GODOT_PROJECT_FOLDER, PROJECT_NAME))
set_menu {
usage = "xmake import-assets",
description = "Import project assets",
}
task_end()