Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 1 addition & 74 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## Description

<!-- Provide a brief description of the changes in this PR -->

## Type of Change

<!-- Mark the relevant option with an "x" -->
Expand All @@ -13,73 +9,4 @@
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)

## Related Issues

<!-- Link to related issues using "Fixes #123" or "Closes #123" -->

Fixes #

## Changes Made

<!-- List the specific changes made in this PR -->

-
-
-

## Testing

<!-- Describe the tests you ran and their results -->

- [ ] All existing tests pass
- [ ] New tests added for new functionality
- [ ] Manual testing performed
- [ ] Tested on multiple platforms (Linux/macOS/Windows)

### Test Commands

```bash
# Commands used to test the changes
cargo test --all-features
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
```

## Performance Impact

<!-- If applicable, describe any performance impact -->

- [ ] No performance impact
- [ ] Performance improved
- [ ] Performance impact acceptable for the feature
- [ ] Performance benchmarks included

## Breaking Changes

<!-- If this is a breaking change, describe what breaks and how to migrate -->

## Documentation

- [ ] Documentation updated (if applicable)
- [ ] README updated (if applicable)
- [ ] Help text updated (if applicable)
- [ ] Examples updated (if applicable)

## Checklist

- [ ] Code follows the project's style guidelines
- [ ] Self-review of the code completed
- [ ] Code is commented, particularly in hard-to-understand areas
- [ ] Corresponding changes to documentation made
- [ ] Changes generate no new warnings
- [ ] New tests added that prove the fix is effective or the feature works
- [ ] All new and existing tests pass locally
- [ ] Any dependent changes have been merged

## Screenshots

<!-- If applicable, add screenshots to help explain your changes -->

## Additional Notes

<!-- Any additional information that reviewers should know -->
## Description
104 changes: 52 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always
Expand All @@ -23,44 +23,44 @@ jobs:
experimental: true

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy

- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run clippy
run: cargo clippy --all-features

- name: Run tests
run: cargo test --all-features
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy

- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run clippy
run: cargo clippy --all-features

- name: Run tests
run: cargo test --all-features
security:
name: Security Audit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Checkout code
uses: actions/checkout@v4

- name: Install cargo-audit
run: cargo install cargo-audit
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Run security audit
run: cargo audit
- name: Install cargo-audit
run: cargo install cargo-audit

- name: Run security audit
run: cargo audit

build:
name: Build Release
Expand All @@ -76,21 +76,21 @@ jobs:
target: x86_64-apple-darwin

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- name: Build release
run: cargo build --release --target ${{ matrix.target }}

- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: bradar-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/bradar*
!target/${{ matrix.target }}/release/bradar.d
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- name: Build release
run: cargo build --release --target ${{ matrix.target }}

- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: bradar-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/bradar*
!target/${{ matrix.target }}/release/bradar.d
70 changes: 35 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -40,50 +40,50 @@ jobs:
binary_name: bradar

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- name: Install cross (for Linux ARM64)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: cargo install cross
- name: Install cross (for Linux ARM64)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: cargo install cross

- name: Build release
run: |
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
cross build --release --target ${{ matrix.target }}
else
cargo build --release --target ${{ matrix.target }}
fi
shell: bash
- name: Build release
run: |
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
cross build --release --target ${{ matrix.target }}
else
cargo build --release --target ${{ matrix.target }}
fi
shell: bash

- name: Rename binary for release
run: |
mkdir -p release-assets
cp target/${{ matrix.target }}/release/${{ matrix.binary_name }} release-assets/${{ matrix.asset_name }}
shell: bash
- name: Rename binary for release
run: |
mkdir -p release-assets
cp target/${{ matrix.target }}/release/${{ matrix.binary_name }} release-assets/${{ matrix.asset_name }}
shell: bash

- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: release-assets/${{ matrix.asset_name }}
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: release-assets/${{ matrix.asset_name }}

publish-crate:
name: Publish to crates.io
needs: build-release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Publish to crates.io
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish to crates.io
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pkg/

node_modules/
wasm/node_modules/
server/.wrangler/
server/node_modules/
worker/.wrangler/
worker/node_modules/
Loading