xmpp-rs/.forgejo/workflows/build.yaml
Maxime “pep” Buquet 4175113ea9
Some checks are pending
Build / lint (push) Waiting to run
Build / test-stable (push) Blocked by required conditions
Build / test-nightly (push) Blocked by required conditions
Support Github Actions (for a migration to forgejo)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-11-29 17:32:35 +01:00

53 lines
1.4 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:
- uses: actions/checkout@v4
- run: ls
- name: Rustfmt
run: |
rustup update
rustup component add rustfmt
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 icu-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
test-nightly:
needs: [lint]
runs-on: 'docker'
container:
image: 'rustlang/rust:nightly-alpine'
steps:
- run: apk update; apk add pkgconf musl-dev libressl-dev icu-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