Skip to content

Commit

Permalink
Build webGL
Browse files Browse the repository at this point in the history
  • Loading branch information
HanzaRu committed Apr 17, 2024
1 parent 350169c commit 63da4fe
Show file tree
Hide file tree
Showing 22 changed files with 341 additions and 172 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- android-armv7
- android-x86
- android-x86_84
- webgl
jobs:
build-windows:
if: github.event.inputs.builds == 'windows'
Expand Down Expand Up @@ -429,3 +430,35 @@ jobs:
name: android-x86_64
path: ${{ github.workspace }}/whisper-cpp/build/libwhisper.a
if-no-files-found: error

build-android-x86_64:
if: github.event.inputs.builds == 'webgl'
name: Build for WebGL
runs-on: ubuntu-latest
steps:
- name: Setup Emscripten toolchain
uses: mymindstorm/setup-emsdk@v14

- name: Clone whisper.unity
uses: actions/checkout@v3
with:
path: whisper-unity

- name: Clone whisper.cpp
uses: actions/checkout@v3
with:
repository: ${{ github.event.inputs.whisper_cpp_repo }}
ref: ${{ github.event.inputs.whisper_cpp_repo_ref }}
path: whisper-cpp

- name: Run build script
run: |
cd whisper-unity
sh build_cpp.sh ../whisper-cpp/ webgl
- name: Upload results
uses: actions/upload-artifact@v3
with:
name: webgl
path: ${{ github.workspace }}/whisper-cpp/build/libwhisper.a
if-no-files-found: error
1 change: 1 addition & 0 deletions .github/workflows/upmsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
if ! cmp --silent "README.md" "${{ env.PACKAGEROOT }}/README.md"; then
echo "different"
cp -f README.md ${{ env.PACKAGEROOT }}/README.md
cp -rf .github/ ${{ env.PACKAGEROOT }}/README.md
git add --a
git commit -m "Updated README.md"
git push origin
Expand Down
Loading

0 comments on commit 63da4fe

Please sign in to comment.