This commit is contained in:
finn 2022-12-19 21:50:37 -08:00
parent 8382f8f189
commit 838cff2999

View file

@ -39,8 +39,10 @@ compile:
- git clone https://github.com/signalapp/libsignal-client - git clone https://github.com/signalapp/libsignal-client
- cd libsignal-client && git checkout "$libsignal_version" - cd libsignal-client && git checkout "$libsignal_version"
- rustup target add "${TARGET}" - rustup target add "${TARGET}"
- if [[ -d ../target ]]; then mv ../target target; fi
- RUSTFLAGS="$(../rustflags.sh)" cargo build -p libsignal-jni --target "${TARGET}" --release --verbose - RUSTFLAGS="$(../rustflags.sh)" cargo build -p libsignal-jni --target "${TARGET}" --release --verbose
- cp -v target/${TARGET}/release/libsignal_jni.so ../libsignal_jni-${TARGET}.so - cp -v target/${TARGET}/release/libsignal_jni.so ../libsignal_jni-${TARGET}.so
- cp target/ ../target
variables: variables:
CC: clang-13 CC: clang-13
CXX: clang++-13 CXX: clang++-13
@ -56,8 +58,9 @@ compile:
CC_LD: lld-13 CC_LD: lld-13
CXX_LD: lld-13 CXX_LD: lld-13
LD: lld-13 LD: lld-13
# cache: cache:
# paths: [/root/.cargo] paths:
- target/
artifacts: artifacts:
paths: paths: