export some variables

This commit is contained in:
finn 2022-12-19 19:30:51 -08:00
parent 96d3765fee
commit 34f076e188
2 changed files with 22 additions and 6 deletions

View file

@ -41,6 +41,22 @@ compile:
- rustup target add "${TARGET}"
- RUSTFLAGS="$(../rustflags.sh)" cargo build -p libsignal-jni --target "${TARGET}" --release --verbose
- cp -v target/${TARGET}/release/libsignal_jni.so ../libsignal_jni-${TARGET}.so
variables:
CC: clang-13
CXX: clang++-13
CPP: clang-cpp-13
AR: llvm-ar-13
STRIP: llvm-strip-13
RANLIB: llvm-ranlib-13
AS: llvm-as-13
OBJDUMP: llvm-objdump-13
OBJCOPY: llvm-objcopy-13
READELF: llvm-readelf-13
NM: llvm-nm-13
CC_LD: lld-13
CXX_LD: lld-13
LD: lld-13
artifacts:
paths:
- libsignal_jni-$TARGET.so

View file

@ -6,21 +6,21 @@ apt-get update
PACKAGES=("git" "clang" "libclang-dev" "cmake" "make")
case "${TARGET}" in
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
apt-get install -y "${PACKAGES[@]}" crossbuild-essential-arm64 # {cpp,g++,gcc}-aarch64-linux-gnu libc-dev-arm64-cross
apt-get install -yq "${PACKAGES[@]}" crossbuild-essential-arm64 # {cpp,g++,gcc}-aarch64-linux-gnu libc-dev-arm64-cross
;;
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
;;
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
;;
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
;;
x86_64-unknown-linux-musl)
apt-get install -y "${PACKAGES[@]}" musl-tools
apt-get install -yq "${PACKAGES[@]}" musl-tools
;;
*)
apt-get install -y "${PACKAGES[@]}"
apt-get install -yq "${PACKAGES[@]}"
;;
esac