-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0cd259b
Showing
20 changed files
with
3,116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Rust CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: x86_64-unknown-linux-gnu | ||
profile: minimal | ||
override: true | ||
|
||
- name: Install Dependencies | ||
run: sudo apt install libdbus-1-dev pkg-config && rustup component add clippy rustfmt | ||
|
||
- name: Run Clippy (Linting) | ||
run: cargo clippy --all-targets --all-features -- -D warnings | ||
|
||
- name: Run Tests | ||
run: cargo test --all-targets --all-features --verbose | ||
|
||
- name: Build Project | ||
run: cargo build --release | ||
|
||
- name: Upload Build Artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: hrv-rs-build | ||
path: target/release/ | ||
|
||
- name: Install cargo-tarpaulin | ||
run: cargo install cargo-tarpaulin | ||
|
||
- name: Run Coverage Analysis | ||
run: cargo tarpaulin --out Xml --all-targets --all-features | ||
env: | ||
RUSTFLAGS: "-C link-dead-code" # Required for accurate coverage analysis | ||
|
||
- name: Upload Coverage Report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage-report | ||
path: tarpaulin-report.xml | ||
|
||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: tarpaulin-report.xml | ||
fail_ci_if_error: true | ||
flags: unittests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
|
||
# Added by cargo | ||
|
||
/target | ||
|
||
|
||
# pdf docs | ||
|
||
# misc | ||
.hide* | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
name = "hrv-rs" | ||
version = "0.2.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
egui = "0.29.1" | ||
egui_extras = "0.29.1" | ||
egui_plot = "0.29.0" | ||
eframe = { version = "0.29.1", features = ["default"] } | ||
image = { version = "0.25.1", default-features = false, features = ["png"] } | ||
rfd = "0.15.1" | ||
env_logger = { version = "0.11.5", default-features = false, features = [ | ||
"auto-color", | ||
"humantime", | ||
] } | ||
btleplug = "0.11.6" | ||
uuid = {version = "1.11.0", features = ["v4"]} | ||
tokio = { version = "1.41.1", features = ['full'] } | ||
futures = "0.3.31" | ||
nalgebra = "0.33.2" | ||
time = { version = "0.3.36", features = ["macros", "serde", "serde-human-readable", "serde-well-known"] } | ||
log = { version = "0.4.22", features = [] } | ||
serde = { version = "1.0.215", features = ["derive", "serde_derive"] } | ||
serde_json = "1.0.133" | ||
async-trait = "0.1.83" | ||
mockall = "0.13.1" |
Oops, something went wrong.