From 44d9fcaf5e193939e57fdcb600bb10dca43ce475 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 8 Jul 2024 15:50:19 +0800 Subject: [PATCH 1/3] use windows-2019 to build wheels --- .github/workflows/build-wheels-win64.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-win64.yaml b/.github/workflows/build-wheels-win64.yaml index dc45b29..4c1b011 100644 --- a/.github/workflows/build-wheels-win64.yaml +++ b/.github/workflows/build-wheels-win64.yaml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest] + os: [windows-2019] python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] steps: @@ -42,6 +42,7 @@ jobs: - uses: actions/upload-artifact@v2 with: + name: ${{ matrix.os }}-${{ matrix.python-version }} path: ./wheelhouse/*.whl - name: Publish wheels to PyPI From f8489ccd6d9b8db32783162067ce71302123b2b1 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 8 Jul 2024 15:50:55 +0800 Subject: [PATCH 2/3] release v1.7.12 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c0960ef..7bb75c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR) project(kaldifst CXX) -set(KALDIFST_VERSION "1.7.11") +set(KALDIFST_VERSION "1.7.12") # Disable warning about # From 4695322d152818f7d4c25318d079b67e37412465 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 8 Jul 2024 15:54:38 +0800 Subject: [PATCH 3/3] fix building wheels for win64 --- .github/workflows/build-wheels-win64.yaml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-wheels-win64.yaml b/.github/workflows/build-wheels-win64.yaml index 4c1b011..08b0f85 100644 --- a/.github/workflows/build-wheels-win64.yaml +++ b/.github/workflows/build-wheels-win64.yaml @@ -21,19 +21,26 @@ jobs: fail-fast: false matrix: os: [windows-2019] - python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ - # for a list of versions + - name: Setup Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Build wheels - uses: pypa/cibuildwheel@v2.16.5 - env: - CIBW_BUILD: "${{ matrix.python-version}}-* " - CIBW_SKIP: "cp27-* cp35-* *-win32 pp* *-musllinux*" - CIBW_BUILD_VERBOSITY: 3 + shell: bash + run: | + pip install setuptools wheel + + python3 setup.py bdist_wheel + + ls -lh ./dist/ + + mv dist wheelhouse - name: Display wheels shell: bash