mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-02 06:31:23 +00:00
Switch to clux/muslrust:stable
This commit is contained in:
parent
2f9d8776ac
commit
7f7f3e7327
14
.drone.yml
14
.drone.yml
|
@ -10,7 +10,7 @@ steps:
|
||||||
|
|
||||||
# use minimum supported rust version for most steps
|
# use minimum supported rust version for most steps
|
||||||
- name: prepare repo
|
- name: prepare repo
|
||||||
image: clux/muslrust:1.57.0
|
image: clux/muslrust:stable
|
||||||
user: root
|
user: root
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
@ -25,14 +25,14 @@ steps:
|
||||||
|
|
||||||
# latest rust for clippy to get extra checks
|
# latest rust for clippy to get extra checks
|
||||||
- name: cargo clippy
|
- name: cargo clippy
|
||||||
image: rust:1.61-buster
|
image: rust:1-buster
|
||||||
commands:
|
commands:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
|
- cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
|
||||||
- cargo clippy --workspace --all-features -- -D clippy::unwrap_used
|
- cargo clippy --workspace --all-features -- -D clippy::unwrap_used
|
||||||
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
image: clux/muslrust:1.57.0
|
image: clux/muslrust:stable
|
||||||
environment:
|
environment:
|
||||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
|
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
|
||||||
|
@ -44,20 +44,20 @@ steps:
|
||||||
- cargo test --workspace --no-fail-fast --all-features
|
- cargo test --workspace --no-fail-fast --all-features
|
||||||
|
|
||||||
- name: check defaults.hjson updated
|
- name: check defaults.hjson updated
|
||||||
image: clux/muslrust:1.57.0
|
image: clux/muslrust:stable
|
||||||
commands:
|
commands:
|
||||||
- ./scripts/update_config_defaults.sh config/defaults_current.hjson
|
- ./scripts/update_config_defaults.sh config/defaults_current.hjson
|
||||||
- diff config/defaults.hjson config/defaults_current.hjson
|
- diff config/defaults.hjson config/defaults_current.hjson
|
||||||
|
|
||||||
- name: check with different features
|
- name: check with different features
|
||||||
image: clux/muslrust:1.57.0
|
image: clux/muslrust:stable
|
||||||
commands:
|
commands:
|
||||||
- cargo install cargo-workspaces
|
- cargo install cargo-workspaces
|
||||||
- cargo workspaces exec cargo check --no-default-features
|
- cargo workspaces exec cargo check --no-default-features
|
||||||
- cargo workspaces exec cargo check --all-features
|
- cargo workspaces exec cargo check --all-features
|
||||||
|
|
||||||
- name: cargo build
|
- name: cargo build
|
||||||
image: clux/muslrust:1.57.0
|
image: clux/muslrust:stable
|
||||||
commands:
|
commands:
|
||||||
- cargo build
|
- cargo build
|
||||||
- mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
|
- mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
|
||||||
|
@ -171,7 +171,7 @@ platform:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: prepare repo
|
- name: prepare repo
|
||||||
image: rust:1.57-slim
|
image: rust:1-slim
|
||||||
user: root
|
user: root
|
||||||
commands:
|
commands:
|
||||||
- chown 1000:1000 . -R
|
- chown 1000:1000 . -R
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ARG RUST_BUILDER_IMAGE=clux/muslrust:1.59.0
|
ARG RUST_BUILDER_IMAGE=clux/muslrust:stable
|
||||||
|
|
||||||
FROM $RUST_BUILDER_IMAGE as chef
|
FROM $RUST_BUILDER_IMAGE as chef
|
||||||
USER root
|
USER root
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Build the project
|
# Build the project
|
||||||
FROM clux/muslrust:1.59.0 as builder
|
FROM clux/muslrust:stable as builder
|
||||||
|
|
||||||
ARG CARGO_BUILD_TARGET=x86_64-unknown-linux-musl
|
ARG CARGO_BUILD_TARGET=x86_64-unknown-linux-musl
|
||||||
ARG RUSTRELEASEDIR="release"
|
ARG RUSTRELEASEDIR="release"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ARG RUST_BUILDER_IMAGE=rust:1.60-slim-buster
|
ARG RUST_BUILDER_IMAGE=rust:1-slim-buster
|
||||||
|
|
||||||
# Build Lemmy
|
# Build Lemmy
|
||||||
FROM $RUST_BUILDER_IMAGE as builder
|
FROM $RUST_BUILDER_IMAGE as builder
|
||||||
|
|
Loading…
Reference in a new issue