@@ -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
|
||||
Reference in New Issue
Block a user