From 37d87161a1f48c1d160b48d49e43cb8d0354ede8 Mon Sep 17 00:00:00 2001 From: jane400 Date: Sat, 25 Jan 2025 12:07:16 +0100 Subject: [PATCH] feat: initial ci --- .forgejo/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..6a533bc --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,36 @@ +on: + pull_request: + +# https://doc.rust-lang.org/cargo/guide/continuous-integration.html + +env: + CARGO_TERM_COLOR: always + APORTS_PACKAGES: | + cargo-auditable \ + gst-plugins-bad-dev \ + gst-plugins-base-dev \ + gst-plugins-rs \ + gstreamer-dev \ + gtk4.0-dev \ + libadwaita-dev \ + libseccomp-dev \ + openssl-dev \ + webkit2gtk-6.0-dev + + +jobs: + test_alpine_edge: + runs-on: docker + container: + image: alpine:edge + steps: + - run: apk add ${{ env.APORTS_PACKAGES }} + - run: cargo test --workspace --all-targets + + test_alpine_stable: + runs-on: docker + container: + image: alpine:latest + steps: + - run: apk add ${{ env.APORTS_PACKAGES }} + - run: cargo test --workspace --all-targets