Skip to content

Commit 09255af

Browse files
authored
Fix building Python wheels for Windows (k2-fsa#3504)
1 parent e27b0e7 commit 09255af

2 files changed

Lines changed: 0 additions & 31 deletions

File tree

.github/workflows/build-wheels-win32.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,12 @@ jobs:
4949
run: |
5050
python3 -m pip install wheel twine==5.0.0 setuptools
5151
52-
- name: Install sccache
53-
run: choco install sccache -y
54-
55-
- name: Cache sccache
56-
uses: actions/cache@v3
57-
with:
58-
path: C:\Users\runneradmin\AppData\Local\Mozilla\sccache
59-
key: ${{ matrix.os }}-sccache-core-win32
60-
restore-keys: |
61-
${{ matrix.os }}-sccache-core-win32
62-
6352
- name: Configure CMake
6453
shell: bash
6554
run: |
6655
mkdir build
6756
cd build
6857
cmake \
69-
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
70-
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
7158
-A Win32 \
7259
-D CMAKE_BUILD_TYPE=Release \
7360
-D BUILD_SHARED_LIBS=ON \
@@ -84,8 +71,6 @@ jobs:
8471
8572
ls -lh ./bin/Release/sherpa-onnx.exe
8673
87-
- name: Show sccache stats
88-
run: sccache --show-stats
8974
9075
- name: Show
9176
shell: bash

.github/workflows/build-wheels-win64.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,12 @@ jobs:
4949
run: |
5050
python3 -m pip install wheel twine==5.0.0 setuptools
5151
52-
- name: Install sccache
53-
run: choco install sccache -y
54-
55-
- name: Cache sccache
56-
uses: actions/cache@v3
57-
with:
58-
path: C:\Users\runneradmin\AppData\Local\Mozilla\sccache
59-
key: ${{ matrix.os }}-sccache-core
60-
restore-keys: |
61-
${{ matrix.os }}-sccache-core-
62-
6352
- name: Configure CMake
6453
shell: bash
6554
run: |
6655
mkdir build
6756
cd build
6857
cmake \
69-
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
70-
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
7158
-A x64 \
7259
-D SHERPA_ONNX_ENABLE_TTS=ON \
7360
-D CMAKE_BUILD_TYPE=Release \
@@ -85,9 +72,6 @@ jobs:
8572
8673
ls -lh ./bin/Release/sherpa-onnx.exe
8774
88-
- name: Show sccache stats
89-
run: sccache --show-stats
90-
9175
- name: Show
9276
shell: bash
9377
run: |

0 commit comments

Comments
 (0)