more work on win bin ci

This commit is contained in:
Eric Froemling 2021-06-09 19:29:49 -05:00
parent 5d0c201922
commit d0c9d92899
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98
3 changed files with 17 additions and 2 deletions

View File

@ -57,4 +57,4 @@ jobs:
- name: Run tests
run: python tools/pcommand pytest -v tests
- name: Compile binary
run: tools/pcommand efrocache_get build/prefab/lib/windows/Debug_Win32/BallisticaCoreGenericInternal.lib
run: tools/pcommand win_ci_binary_build

View File

@ -822,3 +822,17 @@ def gen_flat_data_code() -> None:
outpath = sys.argv[3]
varname = sys.argv[4]
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!')

View File

@ -38,7 +38,8 @@ from batools.pcommand import (
make_prefab, update_makebob, lazybuild, android_archive_unstripped_libs,
efro_gradle, stage_assets, update_assets_makefile, update_project,
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
if TYPE_CHECKING: