Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/thewh1teagle/vibe
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jul 31, 2024
2 parents 1f71cc8 + dcd3fbe commit fd1ea2b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux_special.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
pre-build-args: "--cuda"
rust-version: "stable"
cuda-version: "12.4.1"
name: "ubuntu-22.04-cuda-12"
name: "ubuntu-22.04-nvidia-12"

# Ubuntu 24.04 cuda
# https://github.com/Jimver/cuda-toolkit/issues/365
Expand All @@ -45,7 +45,7 @@ jobs:
# pre-build-args: "--cuda"
# rust-version: "stable"
# cuda-version: "12.4.1"
# name: "ubuntu-24.04-cuda-12"
# name: "ubuntu-24.04-nvidia-12"

# Ubuntu 22.04 rocm
- platform: "ubuntu-22.04"
Expand Down
39 changes: 36 additions & 3 deletions .github/workflows/windows_special.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
- platform: "windows-latest"
args: '--features="cuda,openblas"'
pre-build-args: "--cuda --openblas"
name: 'cuda-12.5.0'
name: 'nvidia-12.5.0'
cuda-verison: '12.5.0'
rust-version: "stable"

# Windows cuda 11.8.0
- platform: "windows-latest"
args: '--features="cuda,openblas"'
pre-build-args: "--cuda --openblas"
name: 'cuda-11.8.0'
name: 'nvidia-11.8.0'
cuda-verison: '11.8.0'
rust-version: "stable"

Expand Down Expand Up @@ -111,7 +111,39 @@ jobs:
args: ${{ matrix.args }}


- name: Prepare Portable zip
if: contains(matrix.name, 'portable')
run: |
# Get all EXE files in the specified directory
$exe_files = Get-ChildItem -Path "target\release\bundle\nsis\*.exe"
# Unzip each EXE file and zip the contents
foreach ($file in $exe_files) {
$name = $file.BaseName
$ext = "_portable.zip"
# Create a new directory for extraction in the same folder
$extract_dir = New-Item -ItemType Directory -Path "$($file.DirectoryName)\$name"
echo $extract_dir.FullName
try {
# Unzip the EXE file into the new directory
& 7z x $file.FullName -o"$extract_dir"
# Zip the contents into a new zip file
$zip_name = "{0}{1}" -f $name, $ext
& 7z a "$($file.DirectoryName)\$zip_name" "$extract_dir\*"
Write-Output "Zipped contents of '$($file.FullName)' to '$zip_name'"
} finally {
# Remove the extraction directory
Remove-Item -Recurse -Force $extract_dir
}
}
shell: pwsh

- name: Rename Installer
if: ${{ !contains(matrix.name, 'portable') }}
run: |
# Get the list of exe files in the directory
$exe_files = Get-ChildItem -Path "target\release\bundle\nsis\*.exe"
Expand All @@ -136,7 +168,8 @@ jobs:
- name: Upload installer
if: github.event.inputs.skip-publish != '1'
run: |
bun scripts/publish.js target/release/bundle/nsis/*.exe
$filePattern = '${{ matrix.name }}' -match 'portable' ? '*.zip' : '*.exe'
bun scripts/publish.js target/release/bundle/nsis/$filePattern
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ path = "src/lib.rs"

[dependencies]

whisper-rs = { git = "https://github.com/tazz4843/whisper-rs.git", rev = "f1030ef", features = [
whisper-rs = { git = "https://github.com/thewh1teagle/whisper-rs.git", branch = "v1.6.2", features = [
"whisper-cpp-tracing",
] }
clap = { version = "4.4.13", features = ["derive"] }
Expand Down

0 comments on commit fd1ea2b

Please sign in to comment.