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