about summary refs log tree commit diff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-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: {}