Author SHA1 Message Date
pancake afb7e4368c Use r2-6.2.6 in the ci 2026-11-06 14:00:36 +01:00
Abhi c2f219c95a meson: guard the class-import test on the file's existence
test/test_import.py is referenced but not committed on all branches,
which makes meson configure abort on Windows with
ERROR: File test/test_import.py does not exist. Wire the test only
when the file is present.
2026-10-18 11:45:15 +05:30
Abhi 4a35664331 Fix bindist triplet naming on runners with older r2pm
CI's bindist job pins radare2 6.2.2, whose r2pm does not provide
R2PM_OS/ARCH/BITS yet, so the unix builds produced
r2unity-6.2.2---.zip. Fall back to uname (darwin/linux, x86/arm)
like the radare2-pm bindist recipes expect.
2026-10-18 11:18:47 +05:30
3 changed files with 31 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
name: CI
env:
R2V: 6.2.2
R2V: 6.2.6
on:
push:
+25 -1
View File
@@ -76,7 +76,31 @@ user-uninstall: uninstall-plugin
rm -f "$(R2PM_BINDIR)/$(EXEC)"
# Binary package for r2pm -bi: plugins/ and bin/ for this r2 version and platform
BINDIST_ZIP = r2unity-$(shell r2 -qv)-$(shell r2pm -H R2PM_OS)-$(shell r2pm -H R2PM_ARCH)-$(shell r2pm -H R2PM_BITS).zip
# Binary package for r2pm -bi: plugins/ and bin/ for this r2 version and platform
# R2PM_OS/ARCH/BITS require a recent r2pm; fall back to uname when missing
R2PM_OS_SH = $(shell r2pm -H R2PM_OS 2>/dev/null)
R2PM_ARCH_SH = $(shell r2pm -H R2PM_ARCH 2>/dev/null)
R2PM_BITS_SH = $(shell r2pm -H R2PM_BITS 2>/dev/null)
ifeq ($(R2PM_OS_SH),)
ifeq ($(shell uname -s),Darwin)
R2PM_OS_SH = darwin
else
R2PM_OS_SH = linux
endif
endif
ifeq ($(R2PM_ARCH_SH),)
ifeq ($(shell uname -m),x86_64)
R2PM_ARCH_SH = x86
else ifneq (,$(filter $(shell uname -m),aarch64 arm64))
R2PM_ARCH_SH = arm
else
R2PM_ARCH_SH = $(shell uname -m)
endif
endif
ifeq ($(R2PM_BITS_SH),)
R2PM_BITS_SH = 64
endif
BINDIST_ZIP = r2unity-$(shell r2 -qv)-$(R2PM_OS_SH)-$(R2PM_ARCH_SH)-$(R2PM_BITS_SH).zip
bindist: $(EXEC) $(PLUGINS)
rm -rf build/bindist $(BINDIST_ZIP)
+5 -2
View File
@@ -1,7 +1,7 @@
project(
'r2unity',
'c',
version: '1.2.8',
version: '1.2.9',
default_options: [
'c_std=c99',
'warning_level=2',
@@ -115,8 +115,11 @@ if build_plugins
install_dir: r2_plugindir,
)
# test_import.py is not always present (it is not committed yet on every
# branch); only wire the test when the file exists
fs = import('fs')
python = find_program('python3', required: false)
if python.found()
if python.found() and fs.exists('test' / 'test_import.py')
test('r2unity-class-import', python,
args: [files('test/test_import.py'), core_plugin],
)