xmpp-rs/.forgejo/workflows/build.yaml
Maxime “pep” Buquet 0da75f012e
Some checks reported warnings
Build / lint (push) Has been cancelled
Build / test-stable (push) Has been cancelled
Build / test-nightly (push) Has been cancelled
WIP Actions
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-11-26 23:01:22 +01:00

49 lines
1.3 KiB
YAML

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:
- name: Rustfmt
run: |
rustup update
rustup component add rustfmt
cargo fmt --check
test-stable:
runs-on: 'docker'
container:
image: 'rust:latest'
steps:
- run: apk update; apk add git pkgconf libressl-dev icu-dev
- run: git clone --depth=1 "${{ gitea.url }}"
- 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
test-nightly:
runs-on: 'docker'
container:
image: 'rustlang/rust:nightly-alpine'
steps:
- run: apk update; apk add git pkgconf libressl-dev icu-dev
- run: git clone --depth=1 "${{ gitea.url }}"
- 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