Add crosscompiled arm64 debian builds ##ci

This commit is contained in:
pancake 2023-04-05 12:48:11 +02:00 committed by GitHub
parent b6d777275c
commit 91d5c5c98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 13 deletions

View File

@ -84,6 +84,24 @@ jobs:
with:
name: linux-acr-deb-64
path: dist/debian/*/*.deb
linux-acr-deb-arm64:
# if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Installing crosscompiler
run: |
sudo apt-get --assume-yes update
sudo apt install --assume-yes gcc-aarch64-linux-gnu
- name: Packaging for Debian
run: |
sys/debian.sh arm64
- name: Pub
uses: actions/upload-artifact@v3
with:
name: linux-acr-deb-arm64
path: dist/debian/*/*.deb
linux-acr-deb-32:
runs-on: ubuntu-20.04
@ -589,6 +607,7 @@ jobs:
tag_name: ${{ steps.release.outputs.tag }}
needs:
- linux-acr-deb-64
- linux-acr-deb-arm64
- linux-acr-deb-32
- w64-static
- w64-meson
@ -601,8 +620,6 @@ jobs:
- android-acr-arm
- android-acr-aarch64
- linux-static
- linux-acr-deb-64
- linux-acr-deb-32
- linux-wasi
# - freebsd
# - android-meson
@ -663,6 +680,15 @@ jobs:
asset_path: dist/artifacts/linux-acr-deb-64/radare2/radare2_${{ steps.r2v.outputs.branch }}_amd64.deb
asset_name: radare2_${{ steps.r2v.outputs.branch }}_amd64.deb
asset_content_type: application/vnd.debian.binary-package
- name: Upload asset for Debian (arm64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/artifacts/linux-acr-deb-arm64/radare2/radare2_${{ steps.r2v.outputs.branch }}_arm64.deb
asset_name: radare2_${{ steps.r2v.outputs.branch }}_arm64.deb
asset_content_type: application/vnd.debian.binary-package
- name: Upload prefetched tarball (source)
uses: actions/upload-release-asset@v1
env:

View File

@ -1,17 +1,12 @@
include ../config.mk
N=anal_arm_v35
# include ../config.mk
include ../../config-user.mk
N=arch_arm_v35
V35ARM64_HOME=$(LIBR)/arch/p/arm/v35/
include ../arch/p/arm/v35/deps-arm64.mk
OBJ_ARM_V35=p/arm/plugin_v35.o
# OBJ_ARM_V35+=${V35ARM64_LINK}
OBJ_ARM_V35+=p/arm/v35/arch-arm64/disassembler/*.o
# OBJ_ARM_V35 += ../../arch/p/arm/v35/arm64dis.$(EXT_AR)
# OBJ_ARM_V35+=../../arch/p/arm/v35/armv7dis.$(EXT_AR)
# assembler should be resolved externally
# OBJ_ARM_V35+=p/arm/armass64.o
# OBJ_ARM_V35+=p/arm/armass.o
OBJ_ARM_V35+=${V35ARM64_LINK}
STATIC_OBJ+=${OBJ_ARM_V35}
CFLAGS+=$(V35ARM64_CFLAGS)
@ -20,7 +15,6 @@ TARGET_ARM_V35=$(N).${LIBEXT}
ALL_TARGETS+=$(TARGET_ARM_V35)
$(TARGET_ARM_V35):
# $(STATIC_OBJ)
${CC} $(V35ARM64_CFLAGS) ${CFLAGS} $(call libname,$(N)) \
-lr_util -lr_search \
-o $(TARGET_ARM_V35) ${OBJ_ARM_V35} $(V35ARM64_LDFLAGS)

View File

@ -3,6 +3,16 @@
uname -a
ARG=$1
if [ "$ARG" = "arm64" ]; then
ARCH=arm64
CFGARGS="--with-compiler=aarch64-linux-gnu-gcc"
export CC="aarch64-linux-gnu-gcc"
else
CFGARGS=$*
fi
if [ -z "${ARCH}" ]; then
ARCH=`uname -m`
fi
@ -32,7 +42,7 @@ fi
export CFLAGS="-Wno-cpp -Wno-unused-result ${CFLAGS} -O2"
# build
./configure --prefix=/usr --with-checks-level=0 $*
./configure --prefix=/usr --with-checks-level=0 ${CFGARGS}
[ $? != 0 ] && exit 1
make -j4
[ $? != 0 ] && exit 1