Skip to content

Commit

Permalink
Merge pull request #5 from edgenai/action/release-pr
Browse files Browse the repository at this point in the history
Action/release pr
  • Loading branch information
pedro-devv authored Feb 6, 2024
2 parents 904715e + d1451cc commit 832a750
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 25 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Open a release PR
on:
workflow_dispatch:
inputs:
crate:
description: Crate to release
required: true
type: choice
options:
- whisper_cpp
- whisper_cpp_sys
version:
description: Version to release
required: true
type: string

jobs:
make-release-pr:
permissions:
id-token: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Install cargo-release
uses: taiki-e/install-action@v2
with:
tool: cargo-release
- name: Update submodules
run: git submodule update --init --recursive
- uses: cargo-bins/release-pr@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}
crate-name: ${{ inputs.crate }}
21 changes: 12 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,5 @@ members = [
]

[workspace.dependencies]
bindgen = "0.69.1"
cmake = "0.1.50"
derive_more = "0.99.17"
link-cplusplus = "1.0.9"
thiserror = "1.0.50"
tokio = "1.34.0"
tracing = "0.1.40"
wav = "1.0.0"
whisper_cpp = { path = "crates/whisper_cpp", default-features = false }
whisper_cpp_sys = { path = "crates/whisper_cpp_sys", default-features = false }
6 changes: 3 additions & 3 deletions crates/whisper_cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ publish = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
derive_more = "0.99.17"
thiserror = { workspace = true }
derive_more = { workspace = true }
tokio = { workspace = true, features = ["sync", "rt"] }
tracing = { workspace = true }
whisper_cpp_sys = { workspace = true, default-features = false }
tracing = "0.1.40"
whisper_cpp_sys = { version = "^0.2.0", path = "../whisper_cpp_sys", default-features = false }

[features]
default = ["compat", "native"]
Expand Down
6 changes: 3 additions & 3 deletions crates/whisper_cpp_sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ publish = true
links = "whisper"

[dependencies]
link-cplusplus = { workspace = true }
link-cplusplus = "1.0.9"

[build-dependencies]
bindgen = { workspace = true }
cmake = { workspace = true }
bindgen = "0.69.4"
cmake = "0.1.50"

[features]
default = ["compat", "native"]
Expand Down
4 changes: 2 additions & 2 deletions crates/whisper_cpp_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ edition = "2021"
[dependencies]
thiserror = { workspace = true }
tokio = { workspace = true, features = ["full"] }
wav = { workspace = true }
whisper_cpp = { workspace = true, features = ["compat", "native"] }
wav = "1.0.0"
whisper_cpp = { version = "^0.2.0", path = "../whisper_cpp", default-features = false, features = ["compat", "native"] }

0 comments on commit 832a750

Please sign in to comment.