summaryrefslogtreecommitdiff
path: root/.woodpecker.yaml
blob: 597c3465e5d9d51c3e831a3e6d209d2924893dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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 ]