xmpp-rs/.forgejo/workflows/build.yaml
Maxime “pep” Buquet ec4a681f67
Some checks failed
Build / setup (push) Failing after 2m7s
Build / lint (push) Has been skipped
Build / test-stable (push) Has been skipped
Build / test-nightly (push) Has been skipped
WIP Actions
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-11-17 23:55:20 +01:00

51 lines
1.3 KiB
YAML

name: 'Build'
run-name: 'Building xmpp-rs libraries'
on:
workflow_dispatch:
push:
env:
FEATURES: ""
RUST_BACKTRACE: "full"
jobs:
setup:
runs-on: 'docker'
steps:
- run: apt-get update; apt-get install -y --no-install-recommends pkg-config libssl-dev libicu-dev
- uses: actions/checkout@v4
- run: ls "{{ $gitea.workspace }}"
lint:
needs: [setup]
container:
image: 'rust:slim'
steps:
- name: Rustfmt
run: rustup update; rustup component add rustfmt; cargo fmt --check
test-stable:
needs: [setup]
runs-on: 'docker'
container:
image: 'rust:slim'
steps:
- 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: [setup]
runs-on: 'docker'
container:
image: 'rustlang/rust:nightly-slim'
steps:
- 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