armdevvel / mxe-SHARED

MXE (M cross environment) for ARM32 Windows development (shared libraries)
Other
6 stars 3 forks source link

A simple "continuous integration" script #46

Closed treeswift closed 9 months ago

treeswift commented 9 months ago

Configuration

$ tail ~/.bashrc

export DEPLOY_DIR=/Rita/
export DEPLOY_NET=me@dina-talaat
#export DEPLOY_PKG=memmap # inferred (latest built), uncomment to override
#export DEPLOY_TRG=armv7-w64-mingw32 # default, uncomment to override

Usage

Assuming the currently worked-on package is libmemmap (its ZIP archive is the latest-updated symlink in */latest):

$ export DEPLOY_EXE=test-memmap.exe

If DEPLOY_EXE is undefined, the script assumes test-${DEPLOY_PKG}.exe to be the test binary name. In the current package there are multiple test/sample/demo executables and we have to choose explicitly.

$ tools/ci.sh
Found target: armv7-w64-mingw32
Found package: libmemmap
[local]       libmemmap              /home/lxe/Code/libmemmap
[build]       libmemmap              armv7-w64-mingw32
[done]        libmemmap              armv7-w64-mingw32
                  552 KiB        0m12.034s

Deploying libmemmap_armv7-w64-mingw32.zip to me@dina-talaat:
libmemmap_armv7-w64-mingw32.zip               100%   91KB 441.5KB/s   00:00
Archive:  libmemmap_armv7-w64-mingw32.zip
 extracting: installed/libmemmap
  inflating: lib/libmemmap.dll.a
  inflating: bin/test-memmap.exe
  inflating: bin/libmemmap.dll
  inflating: bin/test-memdmp.exe

Running test-memmap.exe on me@dina-talaat (assuming correct PATH):
sys/mman.h API test panel.

mincore() test completed.
VirtualAlloc(00000000, 1000, 3000, 4)
mmap(anon) errno=0

Notes

touch is needed to re-trigger a local build.

treeswift commented 9 months ago

…hold on, 1s.

treeswift commented 9 months ago

Should be good now. The original draft was running unzip in (and relative to) user home directory.

pahaze commented 9 months ago

Looks good.