This is not needed anymore as from scratch installation now uses `git clone` instead of `cargo install`. https://github.com/LemmyNet/lemmy-docs/pull/241/files
This commit is contained in:
parent
5d23ef960e
commit
5cd4c6c586
1 changed files with 3 additions and 20 deletions
|
@ -18,7 +18,6 @@ pipeline:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
- apk add git
|
- apk add git
|
||||||
#- git fetch --tags
|
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
|
|
||||||
|
@ -50,12 +49,11 @@ pipeline:
|
||||||
secrets:
|
secrets:
|
||||||
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
|
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
|
||||||
|
|
||||||
taplo_check:
|
toml_fmt:
|
||||||
image: tamasfe/taplo:0.8.1
|
image: tamasfe/taplo:0.8.1
|
||||||
commands:
|
commands:
|
||||||
- taplo format --check
|
- taplo format --check
|
||||||
|
|
||||||
# use minimum supported rust version for most steps
|
|
||||||
cargo_fmt:
|
cargo_fmt:
|
||||||
image: *muslrust_image
|
image: *muslrust_image
|
||||||
environment:
|
environment:
|
||||||
|
@ -75,7 +73,6 @@ pipeline:
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
commands:
|
commands:
|
||||||
# latest rust for clippy to get extra checks
|
|
||||||
# when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh
|
# when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy --workspace --tests --all-targets --features console --
|
- cargo clippy --workspace --tests --all-targets --features console --
|
||||||
|
@ -97,7 +94,7 @@ pipeline:
|
||||||
# platform: linux/amd64
|
# platform: linux/amd64
|
||||||
|
|
||||||
# make sure api builds with default features (used by other crates relying on lemmy api)
|
# make sure api builds with default features (used by other crates relying on lemmy api)
|
||||||
cargo_check:
|
check_api_common_default_features:
|
||||||
image: *muslrust_image
|
image: *muslrust_image
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
|
@ -114,6 +111,7 @@ pipeline:
|
||||||
- "! cargo tree -p lemmy_api_common --no-default-features -i diesel"
|
- "! cargo tree -p lemmy_api_common --no-default-features -i diesel"
|
||||||
# when:
|
# when:
|
||||||
# platform: linux/amd64
|
# platform: linux/amd64
|
||||||
|
|
||||||
lemmy_api_common_works_with_wasm:
|
lemmy_api_common_works_with_wasm:
|
||||||
image: *muslrust_image
|
image: *muslrust_image
|
||||||
environment:
|
environment:
|
||||||
|
@ -148,7 +146,6 @@ pipeline:
|
||||||
environment:
|
environment:
|
||||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
RUST_BACKTRACE: "1"
|
RUST_BACKTRACE: "1"
|
||||||
RUST_TEST_THREADS: "1"
|
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
commands:
|
commands:
|
||||||
- export LEMMY_CONFIG_LOCATION=../../config/config.hjson
|
- export LEMMY_CONFIG_LOCATION=../../config/config.hjson
|
||||||
|
@ -229,20 +226,6 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: cron
|
event: cron
|
||||||
|
|
||||||
# using https://github.com/pksunkara/cargo-workspaces
|
|
||||||
publish_to_crates_io:
|
|
||||||
image: *muslrust_image
|
|
||||||
commands:
|
|
||||||
- 'echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"'
|
|
||||||
- cargo install cargo-workspaces
|
|
||||||
- cp -r migrations crates/db_schema/
|
|
||||||
- cargo login "$CARGO_API_TOKEN"
|
|
||||||
- cargo workspaces publish --from-git --allow-dirty --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes custom "${CI_COMMIT_TAG}"
|
|
||||||
secrets: [cargo_api_token]
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
#platform: linux/amd64
|
|
||||||
|
|
||||||
notify_on_failure:
|
notify_on_failure:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in a new issue