36 lines
834 B
YAML
36 lines
834 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
# Target the runner using only the labels it already has.
|
|
|
|
# this will target it correctly in your current setup.
|
|
runs-on: 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
|