Skip to content

Commit

Permalink
Merge pull request #4 from nullstalgia/v0.2.0
Browse files Browse the repository at this point in the history
v0.2.0!
  • Loading branch information
nullstalgia authored Nov 16, 2024
2 parents 00f6783 + ca0bf29 commit c4015bf
Show file tree
Hide file tree
Showing 71 changed files with 8,164 additions and 2,472 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# # For console-subscriber
# [build]
# rustflags = ["--cfg", "tokio_unstable"]
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Build

# Runs for each commit/PR, but not tag push
on:
push:
branches: ["main", "hr_osc"]
branches:
- "**"
pull_request:
branches: ["main", "hr_osc"]

env:
CARGO_TERM_COLOR: always
Expand All @@ -23,9 +24,13 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
# - name: cargo fmt
# run: cargo fmt --all -- --check
# - name: cargo fmt
# run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Build
run: cargo build --verbose
- name: Run Unit Tests
run: cargo test --all-targets --all-features
- name: Run Integration Tests
run: cargo test --all-targets --all-features -- --ignored --show-output --test-threads=1
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
release:
types: [created]

env:
CARGO_TERM_COLOR: always

jobs:
upload-assets:
strategy:
Expand All @@ -28,10 +31,15 @@ jobs:
if: startsWith(matrix.os, 'ubuntu')
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: null-iron-heart
bin: iron-heart
features: portable
target: ${{ matrix.target }}
include: LICENSE,README.md
tar: unix
zip: windows
archive: $bin-$tag-$target
token: ${{ secrets.GITHUB_TOKEN }}
checksum: sha512
- uses: actions/attest-build-provenance@v1
with:
subject-path: "**/*.tar.gz,**/*.zip"
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/target
# Data logging files
# These are put in the root instead of in the target dir in portable+debug builds
# since Cargo cleans them up when I don't want it to
session_logs
bpm.txt
52 changes: 52 additions & 0 deletions .justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# https://github.com/casey/just
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]

alias r := run
alias b := build
alias br := build-release
alias rr := release
alias rel := release
alias t := test
alias ti := test-integration
alias c := clippy
alias d := dummy
alias ws := websocket
alias wsd := websocket-dummy

run *ARGS:
cargo run {{ARGS}}

build *ARGS:
cargo build {{ARGS}}

release:
cargo run --release --features portable

build-release:
cargo build --release --features portable

test:
cargo test

test-integration *ARGS:
cargo test -- --ignored --nocapture --test-threads=1 {{ARGS}}

clippy:
cargo clippy --all-targets --all-features

# Shortcuts for subcommands

ble:
cargo run -- ble

dummy *ARGS:
cargo run -- dummy {{ARGS}}

vhs:
cargo run -- dummy --vhs -s 5.0

websocket *ARGS:
cargo run -- ws {{ARGS}}

websocket-dummy *ARGS:
cargo run --example websocket_dummy -- {{ARGS}}
Loading

0 comments on commit c4015bf

Please sign in to comment.