From beae48e72e80ee235785672025b5bde1158f52eb Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Mon, 31 Jul 2023 18:13:55 +0200 Subject: [PATCH] chore(ci): start ci config --- .woodpecker/build.yml | 13 +++++++++++++ .woodpecker/clippy.yml | 13 +++++++++++++ server/Cargo.toml | 6 ++++++ 3 files changed, 32 insertions(+) create mode 100644 .woodpecker/build.yml create mode 100644 .woodpecker/clippy.yml diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml new file mode 100644 index 0000000..9094610 --- /dev/null +++ b/.woodpecker/build.yml @@ -0,0 +1,13 @@ +platform: 'linux/amd64' +branches: + exclude: [main] + +pipeline: + build: + image: 'rust:1.70-alpine3.18' + commands: + - apk add --no-cache build-base libarchive libarchive-dev + - cargo build --verbose + when: + event: [push] + diff --git a/.woodpecker/clippy.yml b/.woodpecker/clippy.yml new file mode 100644 index 0000000..5f4766c --- /dev/null +++ b/.woodpecker/clippy.yml @@ -0,0 +1,13 @@ +platform: 'linux/amd64' + +branches: + exclude: [main] + +pipeline: + clippy: + image: 'rust:1.70-alpine3.18' + commands: + - rustup component add clippy + - cargo clippy -- --no-deps -Dwarnings + when: + event: [push] diff --git a/server/Cargo.toml b/server/Cargo.toml index 6fdb837..4081a63 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -19,3 +19,9 @@ tower-http = { version = "0.4.1", features = ["fs", "trace"] } tracing = "0.1.37" tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } uuid = { version = "1.4.0", features = ["v4"] } + +[profile.release] +lto = "fat" +codegen-units = 1 +panic = "abort" +strip = true