2023-11-16 14:37:55 +00:00
|
|
|
name: 'Build'
|
|
|
|
run-name: 'Building xmpp-rs libraries'
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
|
|
|
|
env:
|
|
|
|
FEATURES: ""
|
|
|
|
RUST_BACKTRACE: "full"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: 'docker'
|
|
|
|
container:
|
|
|
|
image: 'rust:alpine'
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Rustfmt
|
|
|
|
run: |
|
|
|
|
rustup update
|
|
|
|
rustup component add rustfmt
|
2024-06-18 18:38:42 +00:00
|
|
|
cargo fmt --version
|
2023-11-16 14:37:55 +00:00
|
|
|
cargo fmt --check
|
|
|
|
|
|
|
|
test-stable:
|
|
|
|
needs: [lint]
|
|
|
|
runs-on: 'docker'
|
|
|
|
container:
|
|
|
|
image: 'rust:alpine'
|
|
|
|
steps:
|
|
|
|
- run: apk update; apk add pkgconf musl-dev libressl-dev
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Print versions
|
|
|
|
run: rustc --version; cargo --version
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose --release -- --include-ignored
|
|
|
|
- name: Run tests without default features
|
|
|
|
run: cargo test --verbose --no-default-features
|
2024-01-18 13:31:11 +00:00
|
|
|
env:
|
|
|
|
RUSTFLAGS: " -D warnings"
|
2023-11-16 14:37:55 +00:00
|
|
|
|
|
|
|
test-nightly:
|
|
|
|
needs: [lint]
|
|
|
|
runs-on: 'docker'
|
|
|
|
container:
|
|
|
|
image: 'rustlang/rust:nightly-alpine'
|
|
|
|
steps:
|
|
|
|
- run: apk update; apk add pkgconf musl-dev libressl-dev
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Print versions
|
|
|
|
run: rustc --version; cargo --version
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose --release -- --include-ignored
|
|
|
|
- name: Run tests without default features
|
|
|
|
run: cargo test --verbose --no-default-features
|
2024-01-18 13:31:11 +00:00
|
|
|
env:
|
|
|
|
RUSTFLAGS: " -D warnings"
|