mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 21:01:23 +00:00
Trying to fix drone 10
This commit is contained in:
parent
9f5309e120
commit
6085cc4fcf
1 changed files with 6 additions and 6 deletions
12
.drone.yml
12
.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
|
||||
|
|
Loading…
Reference in a new issue