From 6085cc4fcf88f5c6169a59bcd62d18863e8feabb Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 9 Nov 2021 11:09:24 -0500 Subject: [PATCH] Trying to fix drone 10 --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0d6d9f395..123cd819b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,8 +12,8 @@ steps: image: rust:1.56-alpine user: root commands: - - chown 1000:1000 . -R - - apk add git + # - chown 1000:1000 . -R + - apk add musl-dev openssl-dev postgresql-dev libpq diffutils sed git - git fetch --tags - name: check formatting @@ -37,7 +37,6 @@ steps: RUST_BACKTRACE: 1 RUST_TEST_THREADS: 1 commands: - - apk add musl-dev openssl-dev postgresql-dev libpq - cargo test --workspace --no-fail-fast - name: check defaults.hjson updated @@ -49,6 +48,7 @@ steps: - name: cargo build image: rust:1.56-alpine commands: + - apk add musl-dev openssl-dev postgresql-dev libpq - cargo build - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server @@ -131,7 +131,7 @@ steps: - name: prepare repo # 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 + image: rust:1.56-slim user: root commands: - chown 1000:1000 . -R @@ -140,7 +140,7 @@ steps: - git fetch --tags - name: cargo test - image: rust:1.51-slim + image: rust:1.56-slim environment: LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy LEMMY_CONFIG_LOCATION: ../../config/config.hjson @@ -154,7 +154,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.51-slim + image: rust:1.56-slim commands: - apt-get update - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev