From 4175113ea9f48abbd81a58cd66e9a5c02857ebfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 16 Nov 2023 15:37:55 +0100 Subject: [PATCH] Support Github Actions (for a migration to forgejo) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- .forgejo/workflows/build.yaml | 53 +++++++++++++++++++++++++++++++++++ .gitea | 1 + 2 files changed, 54 insertions(+) create mode 100644 .forgejo/workflows/build.yaml create mode 120000 .gitea diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 00000000..31929415 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,53 @@ +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 diff --git a/.gitea b/.gitea new file mode 120000 index 00000000..d9a4b42c --- /dev/null +++ b/.gitea @@ -0,0 +1 @@ +.forgejo \ No newline at end of file