Skip to content

Commit

Permalink
feat: initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
nkeenan38 committed Mar 24, 2024
0 parents commit a135976
Show file tree
Hide file tree
Showing 31 changed files with 2,306 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nkeenan38
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
42 changes: 42 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
repository:
name: voice_activity_detector
description: A Voice Activity Detector rust library using the Silero VAD model.
homepage: null
topics: rust, voice-activity-detection
private: false
has_issues: true
has_projects: false
has_wiki: false
has_downloads: false
default_branch: main
allow_squash_merge: true
allow_merge_commit: false
allow_rebase_merge: false
delete_branch_on_merge: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

labels:
- name: bug
color: FF0000
description: An issue with the system.
- name: enhancement
color: 0000FF
description: New or improved functionality.

milestones: []
collaborators: []
teams: []

branches:
- name: main
protection:
required_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_code_owner_reviews: true
dismissal_restrictions: {}
required_status_checks: null
enforce_admins: true
required_linear_history: true
restrictions: null
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: ci

on:
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CARGO_TERM_VERBOSE: 'true'

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v2

- name: cargo clippy
run: cargo clippy --all-features --no-deps -- -D warnings

- name: cargo fmt
run: cargo fmt -- --check

- name: cargo doc
run: cargo doc --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: -D warnings

test:
name: test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup rust toolchain
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2

- name: compile
run: cargo test --all-features --no-run

- name: test
run: cargo test --all-features
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: setup rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: release
uses: MarcoIeni/[email protected]
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target
tests/.outputs/*
.vscode
.DS_Store
Loading

0 comments on commit a135976

Please sign in to comment.