Trying to fix drone 10

This commit is contained in:
Dessalines 2021-11-09 11:09:24 -05:00
parent 9f5309e120
commit 6085cc4fcf

View file

@ -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