mirror of
https://gitlab.com/signald/libraries/libsignal-client.git
synced 2025-01-09 20:55:42 +00:00
try building libsignal.dylib for aarch64-apple-darwin
This commit is contained in:
parent
44fee7f025
commit
4e4a215143
1 changed files with 20 additions and 0 deletions
|
@ -57,6 +57,26 @@ compile x86_64-apple-darwin:
|
||||||
- when: manual
|
- when: manual
|
||||||
allow_failure: true
|
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/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:
|
jar:
|
||||||
extends: .multitarget
|
extends: .multitarget
|
||||||
image: gradle:7
|
image: gradle:7
|
||||||
|
|
Loading…
Reference in a new issue