]> Untitled Git - lemmy.git/commitdiff
Trying to fix arm builds. (#1761)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 2 Sep 2021 11:00:45 +0000 (07:00 -0400)
committerGitHub <noreply@github.com>
Thu, 2 Sep 2021 11:00:45 +0000 (11:00 +0000)
* Trying to fix arm builds.

* Adding comment

.drone.yml

index 697c9e814b0531f5c73b394a85f69adff41e2a52..1602eac0f094b3c365f3e4bdc94de76fbd1060ab 100644 (file)
@@ -153,7 +153,9 @@ platform:
 steps:
 
   - name: prepare repo
-    image: rust:1-slim
+    # Not sure why, but rust ARM64 builds are failing on drone for rust:1.54 and later:
+    # https://discourse.drone.io/t/arm-build-stalls-out-on-cloud-drone-io-ram-issue/9701
+    image: rust:1.51-slim
     user: root
     commands:
       - chown 1000:1000 . -R
@@ -162,7 +164,7 @@ steps:
       - git fetch --tags
 
   - name: cargo test
-    image: rust:1-slim
+    image: rust:1.51-slim
     environment:
       LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
       LEMMY_CONFIG_LOCATION: ../../config/config.hjson
@@ -176,7 +178,7 @@ steps:
 
   # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
   - name: cargo build
-    image: rust:1-slim
+    image: rust:1.51-slim
     commands:
       - apt-get update
       - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev