mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 15:03:33 +08:00
more work on win bin ci
This commit is contained in:
parent
5d0c201922
commit
d0c9d92899
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -57,4 +57,4 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: python tools/pcommand pytest -v tests
|
run: python tools/pcommand pytest -v tests
|
||||||
- name: Compile binary
|
- name: Compile binary
|
||||||
run: tools/pcommand efrocache_get build/prefab/lib/windows/Debug_Win32/BallisticaCoreGenericInternal.lib
|
run: tools/pcommand win_ci_binary_build
|
||||||
|
|||||||
@ -822,3 +822,17 @@ def gen_flat_data_code() -> None:
|
|||||||
outpath = sys.argv[3]
|
outpath = sys.argv[3]
|
||||||
varname = sys.argv[4]
|
varname = sys.argv[4]
|
||||||
batools.codegen.gen_flat_data_code(str(PROJROOT), inpath, outpath, varname)
|
batools.codegen.gen_flat_data_code(str(PROJROOT), inpath, outpath, varname)
|
||||||
|
|
||||||
|
|
||||||
|
def win_ci_binary_build() -> None:
|
||||||
|
"""Simple windows binary build for ci."""
|
||||||
|
import subprocess
|
||||||
|
subprocess.run(
|
||||||
|
[
|
||||||
|
'tools/pcommand', 'efrocache_get',
|
||||||
|
'build/prefab/lib/windows/Debug_Win32/'
|
||||||
|
'BallisticaCoreGenericInternal.lib'
|
||||||
|
],
|
||||||
|
check=True,
|
||||||
|
)
|
||||||
|
print('so far so good!')
|
||||||
|
|||||||
@ -38,7 +38,8 @@ from batools.pcommand import (
|
|||||||
make_prefab, update_makebob, lazybuild, android_archive_unstripped_libs,
|
make_prefab, update_makebob, lazybuild, android_archive_unstripped_libs,
|
||||||
efro_gradle, stage_assets, update_assets_makefile, update_project,
|
efro_gradle, stage_assets, update_assets_makefile, update_project,
|
||||||
update_cmake_prefab_lib, cmake_prep_dir, gen_binding_code,
|
update_cmake_prefab_lib, cmake_prep_dir, gen_binding_code,
|
||||||
gen_flat_data_code, wsl_path_to_win, wsl_build_check_win_drive)
|
gen_flat_data_code, wsl_path_to_win, wsl_build_check_win_drive,
|
||||||
|
win_ci_binary_build)
|
||||||
# pylint: enable=unused-import
|
# pylint: enable=unused-import
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user