WIP Actions
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
e20bd9b1d2
commit
d678a0d66e
2 changed files with 71 additions and 0 deletions
70
.forgejo/workflows/build.yaml
Normal file
70
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
name: 'Build'
|
||||||
|
run-name: 'Building xmpp-rs libraries'
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
|
||||||
|
env:
|
||||||
|
FEATURES: ""
|
||||||
|
RUST_BACKTRACE: "full"
|
||||||
|
|
||||||
|
# defaults:
|
||||||
|
# run:
|
||||||
|
# needs: [setup]
|
||||||
|
# container:
|
||||||
|
# image: 'rust:slim'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup:
|
||||||
|
runs-on: 'docker'
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- 'workspace:/workspace'
|
||||||
|
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]
|
||||||
|
runs-on: 'docker'
|
||||||
|
container:
|
||||||
|
image: 'rust:slim'
|
||||||
|
volumes:
|
||||||
|
- 'workspace:/workspace'
|
||||||
|
steps:
|
||||||
|
- run: ls "${{ gitea.workspace }}"
|
||||||
|
- name: Rustfmt
|
||||||
|
run: rustup update; rustup component add rustfmt; cargo fmt --check
|
||||||
|
|
||||||
|
test-stable:
|
||||||
|
needs: [setup]
|
||||||
|
runs-on: 'docker'
|
||||||
|
container:
|
||||||
|
image: 'rust:slim'
|
||||||
|
volumes:
|
||||||
|
- 'workspace:/workspace'
|
||||||
|
steps:
|
||||||
|
- run: ls "${{ gitea.workspace }}"
|
||||||
|
- 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'
|
||||||
|
volumes:
|
||||||
|
- 'workspace:/workspace'
|
||||||
|
steps:
|
||||||
|
- run: ls "${{ gitea.workspace }}"
|
||||||
|
- 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
1
.gitea
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
.forgejo
|
Loading…
Reference in a new issue