mirror of
https://gitlab.com/signald/libraries/libsignal-client.git
synced 2024-12-04 19:46:37 +00:00
build libsignal-client for aarch64-apple-darwin
This commit is contained in:
parent
4d93ee98fc
commit
a5cd0eea35
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue