@@ -43,29 +43,29 @@ jobs:
4343 - name : Build for Windows
4444 if : runner.os == 'Windows'
4545 run : |
46- cmake -A Win32 -B ${{github.workspace}}/ build_win32 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/ build/root_win32
47- cmake --build ${{github.workspace}}/ build_win32 --config Release --target install --parallel 8
48- cmake -A x64 -B ${{github.workspace}}/ build_amd64 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/ build/root_amd64
49- cmake --build ${{github.workspace}}/ build_amd64 --config Release --target install --parallel 8
50- cmake -A arm64 -B ${{github.workspace}}/ build_arm64 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/ build/root_arm64
51- cmake --build ${{github.workspace}}/ build_arm64 --config Release --target install --parallel 8
46+ cmake -A Win32 -B build_win32 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=build/root_win32
47+ cmake --build build_win32 --config Release --target install --parallel 8
48+ cmake -A x64 -B build_amd64 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=build/root_amd64
49+ cmake --build build_amd64 --config Release --target install --parallel 8
50+ cmake -A arm64 -B build_arm64 -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=build/root_arm64
51+ cmake --build build_arm64 --config Release --target install --parallel 8
5252
5353 - name : Build for Mac
5454 if : runner.os == 'macOS'
5555 run : |
56- cmake -B ${{github.workspace}}/ build -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/ build/root
57- cmake --build ${{github.workspace}}/ build --config Release --target install --parallel 8
56+ cmake -B build -DSPM_ENABLE_SHARED=OFF -DSPM_DISABLE_EMBEDDED_DATA=ON -DCMAKE_INSTALL_PREFIX=build/root
57+ cmake --build build --config Release --target install --parallel 8
5858 env :
5959 CMAKE_OSX_ARCHITECTURES : arm64;x86_64
6060
6161 - name : Install cibuildwheel
62- working-directory : ${{github.workspace}}/ python
62+ working-directory : python
6363 run : |
6464 python -m pip install --require-hashes --no-dependencies -r ../.github/workflows/requirements/base.txt
6565 python -m pip install --require-hashes --no-dependencies -r ../.github/workflows/requirements/cibuildwheel.txt
6666
6767 - name : Build wheels
68- working-directory : ${{github.workspace}}/ python
68+ working-directory : python
6969 run : |
7070 mkdir -p src/sentencepiece/package_data
7171 cp ../data/*.bin src/sentencepiece/package_data
8080 CIBW_ENABLE : cpython-freethreading
8181
8282 - name : Build sdist archive
83- working-directory : ${{github.workspace}}/ python
83+ working-directory : python
8484 run : sh build_sdist.sh
8585
8686 - name : Fetch sdist archive
9393 run : python -m pip wheel "${{ steps.sdist.outputs.paths }}" --verbose
9494
9595 - name : Copy sdist
96- working-directory : ${{github.workspace}}/ python
96+ working-directory : python
9797 if : runner.os == 'macOS'
9898 run : cp -f dist/*.tar.gz wheelhouse/
9999
0 commit comments