WIP Actions
Some checks failed
Build / setup (push) Successful in 2m20s
Build / lint (push) Failing after 1m50s
Build / test-stable (push) Failing after 1m52s
Build / test-nightly (push) Failing after 1m53s

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-11-16 15:37:55 +01:00
parent e20bd9b1d2
commit f68bae8cde
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
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
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

1
.gitea Symbolic link
View file

@ -0,0 +1 @@
.forgejo