diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f3cf8d..c88dd25 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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/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