Skip to content

Commit

Permalink
Version 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Jan 4, 2025
1 parent c05e69a commit 7f509e4
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 44 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
.\tools\cmdline\axmol -p win32 -a x64
.\tools\cmdline\axmol run -p win32 -a x64 -xb '--target,unit-tests'
run: .\tools\cmdline\axmol -p win32 -a x64 && .\tools\cmdline\axmol run -p win32 -a x64 -t unit-tests
- uses: actions/upload-artifact@v4
with:
name: windows_x64
Expand Down Expand Up @@ -78,10 +76,7 @@ jobs:
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p linux -a x64
./tools/cmdline/axmol -p linux -a x64 -xb '--target,lua-tests'
./tools/cmdline/axmol run -p linux -a x64 -xb '--target,unit-tests' -wait
run: ./tools/cmdline/axmol -p linux -a x64 -t 'cpp-tests,lua-tests' && ./tools/cmdline/axmol run -p linux -a x64 -t unit-tests -wait
osx-arm64:
runs-on: macos-latest
steps:
Expand All @@ -90,9 +85,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p osx
./tools/cmdline/axmol run -p osx -xb '--target,unit-tests'
run: ./tools/cmdline/axmol -p osx && ./tools/cmdline/axmol run -p osx -t unit-tests
osx-x64:
runs-on: macos-13
steps:
Expand All @@ -101,9 +94,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p osx
./tools/cmdline/axmol run -p osx -xb '--target,unit-tests'
run: ./tools/cmdline/axmol -p osx && ./tools/cmdline/axmol run -p osx -t unit-tests
android:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -154,10 +145,7 @@ jobs:
submodules: 'recursive'
- name: Build
shell: pwsh
run: |
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,fairygui-tests'
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,lua-tests'
run: ./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -t 'cpp-tests,fairygui-tests,lua-tests'
- uses: actions/upload-artifact@v4
with:
name: wasm
Expand Down
24 changes: 20 additions & 4 deletions 1k/1kiss.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,7 @@ elseif ($Global:is_wasm) {

$is_host_target = $Global:is_win32 -or $Global:is_linux -or $Global:is_mac
$is_host_cpu = $HOST_CPU -eq $TARGET_CPU
$cmake_target = $null

if (!$setupOnly) {
$BUILD_DIR = $null
Expand Down Expand Up @@ -2030,10 +2031,25 @@ if (!$setupOnly) {
$forward_options += '--', '-quiet'
}

if ($options.t) { $cmake_target = $options.t }
if ($cmake_target) {
$cmake_targets = $cmake_target.Split(',')
foreach ($target in $cmake_targets) {
$cm_targets = $options.t

if($cm_targets) {
if($cm_targets -isnot [array]) {
$cm_targets = "$cm_targets".Split(',')
}
} else {
$cm_targets = @()
}
if($cmake_target) {
if ($cm_targets.Contains($cmake_target)) {
$cm_targets += $cmake_target
}
} else {
$cmake_target = $cm_targets[-1]
}

if ($cm_targets) {
foreach ($target in $cm_targets) {
$1k.println("cmake --build $BUILD_DIR $BUILD_ALL_OPTIONS --target $target")
cmake --build $BUILD_DIR $BUILD_ALL_OPTIONS --target $target $forward_options | Out-Host
if (!$?) {
Expand Down
7 changes: 4 additions & 3 deletions 1k/extensions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# So provide a spec VersionEx make [VersionEx]'1.0' -eq [VersionEx]'1.0.0' == true available
if (-not ([System.Management.Automation.PSTypeName]'System.VersionEx').Type) {

Add-Type -TypeDefinition @"
$code_str = @"
namespace System
{
Expand Down Expand Up @@ -216,8 +216,9 @@ namespace System
}
"@

$TrimLastMethod = [ExtensionMethods].GetMethod('TrimLast')
Update-TypeData -TypeName System.String -MemberName TrimLast -MemberType CodeMethod -Value $TrimLastMethod
Add-Type -TypeDefinition $code_str
$TrimLastMethod = [ExtensionMethods].GetMethod('TrimLast')
Update-TypeData -TypeName System.String -MemberName TrimLast -MemberType CodeMethod -Value $TrimLastMethod
}


Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## axmol-2.3.1 Jan.5 2025

### Bug fixes

- Fix RenderTexture internal sprite positioning and test cases by @rh101 in https://github.com/axmolengine/axmol/pull/2301
- Fix imgui compile and link error for wasm by @halx99 in https://github.com/axmolengine/axmol/pull/2297

### Improvements

- Improve CI, raise error when build fail by @halx99
- Improve DevSetup.md by @rh101 in https://github.com/axmolengine/axmol/pull/2298

### 3rdparty updates

- xxhash: 0.8.2 ==> 0.8.3

## axmol-2.3.0 Jan.1 2025

### Significant changes relative to 2.2.x:
Expand Down
2 changes: 1 addition & 1 deletion core/axmolver.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// 00 03 08 00
#define AX_VERSION_MAJOR 2
#define AX_VERSION_MINOR 3
#define AX_VERSION_PATCH 0
#define AX_VERSION_PATCH 1

/* Define axmol version helper macros */
#define AX_VERSION_MAKE(a, b, c) ((a << 16) | (b << 8) | (c & 0xff))
Expand Down
39 changes: 20 additions & 19 deletions tools/cmdline/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ param(

$unhandled_args = @()

$options = @{p = $null; d = $null; xc = @(); xb = @(); }
$options = @{p = $null; d = $null; xc = @(); xb = @(); t = @() }

$optName = $null
foreach ($arg in $args) {
Expand Down Expand Up @@ -150,14 +150,17 @@ if ($use_gradle) {
if (!$use_gradle) {
if (!$cmake_target) {
# non android, specific cmake target
$cmake_targets = @(
# project
$proj_name,
# engine
'cpp-tests'
)
$cmake_target = $cmake_targets[$is_axmol_engine]
$options.xb += '--target', $cmake_target
if($options.t) {
if($options.t -isnot [array]) {
$options.t = "$($options.t)".Split(',')
}
}

if(!$options.t) {
$options.t = @(@($proj_name, 'cpp-tests')[$is_axmol_engine])
}

$cmake_target = $options.t[-1]
}

if ($is_android -and !"$($options.xc)".Contains('-DANDROID_STL')) {
Expand Down Expand Up @@ -196,15 +199,13 @@ if ($forceConfig) {
$forward_args['forceConfig'] = $true
}

. $1k_script @1k_args @forward_args @unhandled_args
$op_name = @('Generate', 'Build')[!$configOnly]

if (!$configOnly) {
if ($?) {
$1k.pause('Build success')
} else {
throw "Build fail, ret=$LASTEXITCODE"
}
}
else {
$1k.pause('Generate done')
. $1k_script @1k_args @forward_args @unhandled_args
if ($?) {
$1k.pause("$op_name success")
} else {
Write-Error "$op_name fail, ret=$LASTEXITCODE"
}

exit $LASTEXITCODE

0 comments on commit 7f509e4

Please sign in to comment.