about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <kisik21@fireburn.ru>2021-05-20 03:40:27 +0000
committerVika Shleina <vika@fireburn.ru>2021-07-15 08:38:00 +0300
commit93b56879298810d60d121203403e2416f35e4765 (patch)
tree41ba70c530f361259f2d438775bd69d96ab6d67e
parent9d1848800bb84173c550479b83b1cba73811c61a (diff)
downloadkittybox-93b56879298810d60d121203403e2416f35e4765.tar.zst
Add aarch64 cross-compilation job
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 892325b..fc893bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,6 +43,21 @@ build-x86_64-musl:
         paths:
             - target/x86_64-unknown-linux-musl/release/kittybox_micropub
 
+build-aarch64-musl:
+    needs: ["test-rust-stable"]
+    stage: build
+    image: messense/rust-musl-cross:aarch64-musl
+    cache: {}
+    variables:
+        RUSTFLAGS: -C target-feature=+crt-static
+        CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-unknown-linux-musl-gcc
+    script:
+        - cargo build --release --target aarch64-unknown-linux-musl
+    artifacts:
+        expire_in: 30 days
+        paths:
+            - target/aarch64-unknown-linux-musl/release/kittybox_micropub
+
 .build-docker:
     stage: build
     cache: {}