From 08a134193a0d2c9b2300cd970fe476de4f1b3017 Mon Sep 17 00:00:00 2001 From: Zack3D Date: Sun, 21 Sep 2025 02:16:06 -0700 Subject: [PATCH] wf --- .gitea/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..c336fdd --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + pull_request: + +jobs: + build: + # Target the self-hosted runner labeled as arm_docker (ubuntu-22.04 capable) + runs-on: + - arm_docker + - ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - name: Build + run: | + cd medicallib_rust + cargo build --all-features + - name: Test + run: | + cd medicallib_rust + cargo test --all-features + - name: Clippy + run: | + cd medicallib_rust + cargo clippy --all-targets --all-features -D warnings + - name: Fmt check + run: | + cd medicallib_rust + cargo fmt --all -- --check + - name: Package (ffi) + run: | + cd medicallib_rust + bash ../scripts/package.sh