build libsignal-client for aarch64-apple-darwin

This commit is contained in:
finn 2022-09-13 13:30:52 -07:00
parent 4d93ee98fc
commit a5cd0eea35

View file

@ -57,6 +57,26 @@ compile x86_64-apple-darwin:
- when: manual
allow_failure: true
compile aarch64-apple-darwin:
stage: native library
tags: [darwin-builder]
script:
- git clone https://github.com/signalapp/libsignal-client
- cd libsignal-client && git checkout "$libsignal_version"
- rustup target add aarch64-apple-darwin
- RUSTFLAGS='-C link-arg=-s' cargo build -p libsignal-jni --target aarch64-apple-darwin --release --verbose
- cp -v target/aarch64-apple-darwin/release/libsignal_jni.dylib ../libsignal_jni-aarch64-apple-darwin.dylib
artifacts:
paths:
- libsignal_jni-aarch64-apple-darwin.dylib
variables:
TARGET: aarch64-apple-darwin
rules:
- if: '$CI_PROJECT_ROOT_NAMESPACE == "signald"'
when: on_success
- when: manual
allow_failure: true
jar:
extends: .multitarget
image: gradle:7