1name: 'Build'
2run-name: 'Building xmpp-rs libraries'
3on:
4 workflow_dispatch:
5 push:
6
7env:
8 FEATURES: ""
9 RUST_BACKTRACE: "full"
10 CARGO_TERM_COLOR: "always"
11
12jobs:
13 lint:
14 runs-on: 'docker'
15 container:
16 image: 'rust:alpine'
17 steps:
18 - uses: actions/checkout@v4
19 - name: Rustfmt
20 run: |
21 rustup update
22 rustup component add rustfmt
23 cargo fmt --version
24 cargo fmt --check
25
26 test-stable:
27 needs: [lint]
28 runs-on: 'docker'
29 container:
30 image: 'rust:alpine'
31 steps:
32 - run: apk update; apk add pkgconf musl-dev libressl-dev
33 - uses: actions/checkout@v4
34 - name: Print versions
35 run: rustc --version; cargo --version
36 - name: Run tests
37 run: cargo test --verbose
38 - name: Run tests without default features
39 run: cargo test --verbose --no-default-features
40 env:
41 RUSTFLAGS: " -D warnings"
42
43 test-nightly:
44 needs: [lint]
45 runs-on: 'docker'
46 container:
47 image: 'rustlang/rust:nightly-alpine'
48 steps:
49 - run: apk update; apk add pkgconf musl-dev libressl-dev
50 - uses: actions/checkout@v4
51 - name: Print versions
52 run: rustc --version; cargo --version
53 - name: Run tests
54 run: cargo test --verbose
55 - name: Run tests without default features
56 run: cargo test --verbose --no-default-features
57 env:
58 RUSTFLAGS: " -D warnings"