- mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
- name: run federation tests
- image: node:15-alpine3.12
+ image: node:alpine
environment:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
DO_WRITE_HOSTS_FILE: 1
# using https://github.com/pksunkara/cargo-workspaces
- name: publish to crates.io
- image: rust:1.51-slim-buster
+ image: rust:1
+ environment:
+ CARGO_TOKEN:
+ from_secret: cargo_api_token
commands:
- cargo install cargo-workspaces
- cp -r migrations crates/db_queries/
- - cargo workspaces publish --no-git-commit --allow-branch main --yes custom "${DRONE_TAG}"
+ - cargo login "$CARGO_TOKEN"
+ - cargo workspaces publish --from-git --allow-dirty --allow-branch "${DRONE_TAG}" --yes custom "${DRONE_TAG}"
when:
ref:
- refs/tags/*
steps:
- name: prepare repo
- image: rust:1.51-slim-buster
+ image: rust:1-slim
user: root
commands:
- chown 1000:1000 . -R
- git fetch --tags
- name: cargo test
- image: rust:1.51-slim-buster
+ image: rust:1-slim
environment:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
# 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-buster
+ image: rust:1-slim
commands:
- apt-get update
- apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
- mv target/debug/lemmy_server target/lemmy_server
- name: run federation tests
- image: node:15-buster-slim
+ image: node:16-slim
environment:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
DO_WRITE_HOSTS_FILE: 1
[[package]]
name = "lemmy_api"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"actix",
"actix-rt",
[[package]]
name = "lemmy_api_common"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"actix-web",
"chrono",
[[package]]
name = "lemmy_api_crud"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"actix",
"actix-rt",
[[package]]
name = "lemmy_apub"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"activitystreams",
"actix",
[[package]]
name = "lemmy_apub_lib"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"activitystreams",
"anyhow",
[[package]]
name = "lemmy_apub_lib_derive"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"proc-macro2 1.0.28",
"quote 1.0.9",
[[package]]
name = "lemmy_db_queries"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"bcrypt",
"chrono",
[[package]]
name = "lemmy_db_schema"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"chrono",
"diesel",
[[package]]
name = "lemmy_db_views"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"diesel",
"lemmy_db_queries",
[[package]]
name = "lemmy_db_views_actor"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"diesel",
"lemmy_db_queries",
[[package]]
name = "lemmy_db_views_moderator"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"diesel",
"lemmy_db_queries",
[[package]]
name = "lemmy_routes"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"actix",
"actix-web",
[[package]]
name = "lemmy_server"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"activitystreams",
"actix",
[[package]]
name = "lemmy_utils"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"actix-rt",
"actix-web",
[[package]]
name = "lemmy_websocket"
-version = "0.11.3"
+version = "0.11.4-rc.28"
dependencies = [
"actix",
"actix-web",
[package]
name = "lemmy_server"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
homepage = "https://join-lemmy.org/"
]
[dependencies]
-lemmy_api = { version = "=0.11.3", path = "./crates/api" }
-lemmy_api_crud = { version = "=0.11.3", path = "./crates/api_crud" }
-lemmy_apub = { version = "=0.11.3", path = "./crates/apub" }
-lemmy_utils = { version = "=0.11.3", path = "./crates/utils" }
-lemmy_db_schema = { version = "=0.11.3", path = "./crates/db_schema" }
-lemmy_db_queries = { version = "=0.11.3", path = "./crates/db_queries" }
-lemmy_db_views = { version = "=0.11.3", path = "./crates/db_views" }
-lemmy_db_views_moderator = { version = "=0.11.3", path = "./crates/db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.11.3", path = "./crates/db_views_actor" }
-lemmy_api_common = { version = "=0.11.3", path = "crates/api_common" }
-lemmy_websocket = { version = "=0.11.3", path = "./crates/websocket" }
-lemmy_routes = { version = "=0.11.3", path = "./crates/routes" }
+lemmy_api = { version = "=0.11.4-rc.28", path = "./crates/api" }
+lemmy_api_crud = { version = "=0.11.4-rc.28", path = "./crates/api_crud" }
+lemmy_apub = { version = "=0.11.4-rc.28", path = "./crates/apub" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "./crates/utils" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "./crates/db_schema" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "./crates/db_queries" }
+lemmy_db_views = { version = "=0.11.4-rc.28", path = "./crates/db_views" }
+lemmy_db_views_moderator = { version = "=0.11.4-rc.28", path = "./crates/db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.11.4-rc.28", path = "./crates/db_views_actor" }
+lemmy_api_common = { version = "=0.11.4-rc.28", path = "crates/api_common" }
+lemmy_websocket = { version = "=0.11.4-rc.28", path = "./crates/websocket" }
+lemmy_routes = { version = "=0.11.4-rc.28", path = "./crates/routes" }
diesel = "1.4.7"
diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_api"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_apub = { version = "=0.11.3", path = "../apub" }
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.11.3", path = "../db_views" }
-lemmy_db_views_moderator = { version = "=0.11.3", path = "../db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.11.3", path = "../db_views_actor" }
-lemmy_api_common = { version = "=0.11.3", path = "../api_common" }
-lemmy_websocket = { version = "=0.11.3", path = "../websocket" }
+lemmy_apub = { version = "=0.11.4-rc.28", path = "../apub" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
+lemmy_db_views = { version = "=0.11.4-rc.28", path = "../db_views" }
+lemmy_db_views_moderator = { version = "=0.11.4-rc.28", path = "../db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.11.4-rc.28", path = "../db_views_actor" }
+lemmy_api_common = { version = "=0.11.4-rc.28", path = "../api_common" }
+lemmy_websocket = { version = "=0.11.4-rc.28", path = "../websocket" }
diesel = "1.4.7"
bcrypt = "0.10.1"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_api_common"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_views = { version = "=0.11.3", path = "../db_views" }
-lemmy_db_views_moderator = { version = "=0.11.3", path = "../db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.11.3", path = "../db_views_actor" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_views = { version = "=0.11.4-rc.28", path = "../db_views" }
+lemmy_db_views_moderator = { version = "=0.11.4-rc.28", path = "../db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.11.4-rc.28", path = "../db_views_actor" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
serde = { version = "1.0.127", features = ["derive"] }
log = "0.4.14"
diesel = "1.4.7"
[package]
name = "lemmy_api_crud"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[dependencies]
-lemmy_apub = { version = "=0.11.3", path = "../apub" }
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.11.3", path = "../db_views" }
-lemmy_db_views_moderator = { version = "=0.11.3", path = "../db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.11.3", path = "../db_views_actor" }
-lemmy_api_common = { version = "=0.11.3", path = "../api_common" }
-lemmy_websocket = { version = "=0.11.3", path = "../websocket" }
+lemmy_apub = { version = "=0.11.4-rc.28", path = "../apub" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
+lemmy_db_views = { version = "=0.11.4-rc.28", path = "../db_views" }
+lemmy_db_views_moderator = { version = "=0.11.4-rc.28", path = "../db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.11.4-rc.28", path = "../db_views_actor" }
+lemmy_api_common = { version = "=0.11.4-rc.28", path = "../api_common" }
+lemmy_websocket = { version = "=0.11.4-rc.28", path = "../websocket" }
diesel = "1.4.7"
bcrypt = "0.10.1"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_apub"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
-lemmy_apub_lib = { version = "=0.11.3", path = "../apub_lib" }
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.11.3", path = "../db_views" }
-lemmy_db_views_actor = { version = "=0.11.3", path = "../db_views_actor" }
-lemmy_api_common = { version = "=0.11.3", path = "../api_common" }
-lemmy_websocket = { version = "=0.11.3", path = "../websocket" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
+lemmy_apub_lib = { version = "=0.11.4-rc.28", path = "../apub_lib" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
+lemmy_db_views = { version = "=0.11.4-rc.28", path = "../db_views" }
+lemmy_db_views_actor = { version = "=0.11.4-rc.28", path = "../db_views_actor" }
+lemmy_api_common = { version = "=0.11.4-rc.28", path = "../api_common" }
+lemmy_websocket = { version = "=0.11.4-rc.28", path = "../websocket" }
diesel = "1.4.7"
activitystreams = "0.7.0-alpha.11"
bcrypt = "0.10.1"
[package]
name = "lemmy_apub_lib"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[dependencies]
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
-lemmy_websocket = { version = "=0.11.3", path = "../websocket" }
-lemmy_apub_lib_derive = { version = "=0.11.3", path = "../apub_lib_derive" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
+lemmy_websocket = { version = "=0.11.4-rc.28", path = "../websocket" }
+lemmy_apub_lib_derive = { version = "=0.11.4-rc.28", path = "../apub_lib_derive" }
activitystreams = "0.7.0-alpha.11"
serde = { version = "1.0.127", features = ["derive"] }
async-trait = "0.1.51"
[package]
name = "lemmy_apub_lib_derive"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[package]
name = "lemmy_db_queries"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_db_schema"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[package]
name = "lemmy_db_views"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.127", features = ["derive"] }
log = "0.4.14"
[package]
name = "lemmy_db_views_actor"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.127", features = ["derive"] }
[package]
name = "lemmy_db_views_moderator"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.127", features = ["derive"] }
[package]
name = "lemmy_routes"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
-lemmy_websocket = { version = "=0.11.3", path = "../websocket" }
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_views = { version = "=0.11.3", path = "../db_views" }
-lemmy_db_views_actor = { version = "=0.11.3", path = "../db_views_actor" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
-lemmy_api_common = { version = "=0.11.3", path = "../api_common" }
-lemmy_apub_lib = { version = "=0.11.3", path = "../apub_lib" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
+lemmy_websocket = { version = "=0.11.4-rc.28", path = "../websocket" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_views = { version = "=0.11.4-rc.28", path = "../db_views" }
+lemmy_db_views_actor = { version = "=0.11.4-rc.28", path = "../db_views_actor" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
+lemmy_api_common = { version = "=0.11.4-rc.28", path = "../api_common" }
+lemmy_apub_lib = { version = "=0.11.4-rc.28", path = "../apub_lib" }
diesel = "1.4.7"
actix = "0.12.0"
actix-web = { version = "4.0.0-beta.8", default-features = false, features = ["rustls"] }
[package]
name = "lemmy_utils"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[package]
name = "lemmy_websocket"
-version = "0.11.3"
+version = "0.11.4-rc.28"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.11.3", path = "../utils" }
-lemmy_api_common = { version = "=0.11.3", path = "../api_common" }
-lemmy_db_queries = { version = "=0.11.3", path = "../db_queries" }
-lemmy_db_schema = { version = "=0.11.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.11.3", path = "../db_views" }
-lemmy_db_views_actor = { version = "=0.11.3", path = "../db_views_actor" }
+lemmy_utils = { version = "=0.11.4-rc.28", path = "../utils" }
+lemmy_api_common = { version = "=0.11.4-rc.28", path = "../api_common" }
+lemmy_db_queries = { version = "=0.11.4-rc.28", path = "../db_queries" }
+lemmy_db_schema = { version = "=0.11.4-rc.28", path = "../db_schema" }
+lemmy_db_views = { version = "=0.11.4-rc.28", path = "../db_views" }
+lemmy_db_views_actor = { version = "=0.11.4-rc.28", path = "../db_views_actor" }
reqwest = { version = "0.11.4", features = ["json"] }
log = "0.4.14"
rand = "0.8.4"
#git checkout main
# Creating the new tag
-old_tag=$(cat "ansible/VERSION")
new_tag="$1"
third_semver=$(echo $new_tag | cut -d "." -f 3)
fi
# Update crate versions for crates.io
+pushd ../../
+old_tag=$(head -3 Cargo.toml | tail -1 | cut -d'"' -f 2)
for crate in crates/*; do
pushd $crate
# update version of the crate itself (only first occurence)
sed -i "0,/version = \"$old_tag\"/s//version = \"$new_tag\"/g" Cargo.toml
# update version of lemmy dependencies
sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
+ git add Cargo.toml
popd
done
# same as above, for the main cargo.toml
sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
sed -i "s/version = \"$old_tag\"/version = \"$new_tag\"/g" Cargo.toml
-
+git add Cargo.toml
+cargo check
+git add Cargo.lock
+popd
# The commit
git commit -m"Version $new_tag"