summaryrefslogtreecommitdiff
path: root/.woodpecker.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.woodpecker.yaml')
-rw-r--r--.woodpecker.yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml
new file mode 100644
index 0000000..597c346
--- /dev/null
+++ b/.woodpecker.yaml
@@ -0,0 +1,57 @@
+steps:
+ dependencies:
+ image: rust
+ environment:
+ RUST_BACKTRACE: 1
+ CARGO_TERM_COLOR: always
+ commands:
+ - rustup default stable
+ - apt install -y libwebkit2 gtk-4.0-dev
+ when:
+ branch: main
+ event: [ push, pull_request ]
+ build:
+ image: rust
+ environment:
+ RUST_BACKTRACE: 1
+ CARGO_TERM_COLOR: always
+ commands:
+ - cargo build --verbose --release --jobs 2
+ when:
+ branch: main
+ event: [ push, pull_request ]
+
+ fmt:
+ image: rust
+ environment:
+ RUST_BACKTRACE: 1
+ CARGO_TERM_COLOR: always
+ commands:
+ - rustup component add rustfmt
+ - cargo fmt --all -- --check
+ when:
+ branch: main
+ event: [ push, pull_request ]
+# clippy:
+# image: rust
+# environment:
+# RUST_BACKTRACE: 1
+# CARGO_TERM_COLOR: always
+# commands:
+# - rustup component add clippy rustfmt
+# - cargo fmt --all -- --check
+# - cargo clippy --jobs 2 -- -D clippy::all -D warnings
+# when:
+# branch: main
+# event: [ push, pull_request ]
+
+# tests:
+# image: rust
+# environment:
+# RUST_BACKTRACE: 1
+# CARGO_TERM_COLOR: always
+# commands:
+# - cargo test --verbose --jobs 2 -- --test-threads=2
+# when:
+# branch: main
+# event: [ push, pull_request ] \ No newline at end of file