Skip to content

Commit 1a82087

Browse files
committed
removes ${{github.workspace}} prefix from *.yml
1 parent a3f42be commit 1a82087

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/cmake.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,27 @@ jobs:
4242
} else {
4343
$msbuildPlatform = "Win32"
4444
}
45-
cmake -A $msbuildPlatform -B ${{github.workspace}}/build -DSPM_BUILD_TEST=ON -DSPM_ENABLE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/root
45+
cmake -A $msbuildPlatform -B build -DSPM_BUILD_TEST=ON -DSPM_ENABLE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=build/root
4646
47-
- name: Config for Unix
47+
- name: Config for Linux/MacOSX
4848
if: runner.os != 'Windows'
49-
run: cmake -B ${{github.workspace}}/build -DSPM_BUILD_TEST=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/root
49+
run: cmake -B build -DSPM_BUILD_TEST=ON -DCMAKE_INSTALL_PREFIX=build/root
5050
env:
5151
CMAKE_OSX_ARCHITECTURES: arm64;x86_64
5252

5353
- name: Build
54-
run: cmake --build ${{github.workspace}}/build --config Release --target install --parallel 8
54+
run: cmake --build build --config Release --target install --parallel 8
5555

5656
- name: Test
57-
working-directory: ${{github.workspace}}/build
57+
working-directory: build
5858
run: ctest -C Release --output-on-failure
5959

6060
- name: Package
61-
working-directory: ${{github.workspace}}/build
61+
working-directory: build
6262
run: cpack
6363

6464
- name: Build Python wrapper
65-
working-directory: ${{github.workspace}}/python
65+
working-directory: python
6666
run: |
6767
python -m pip install --require-hashes --no-dependencies -r ../.github/workflows/requirements/base.txt
6868
python -m pip install pytest

.github/workflows/cross_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
3535
- name: Build
3636
run: |
37-
mkdir -p ${{github.workspace}}/build
38-
cd ${{github.workspace}}/build
37+
mkdir -p build
38+
cd build
3939
env CXX=/usr/bin/${{matrix.arch}}-linux-gnu-g++-10 CC=/usr/bin/${{matrix.arch}}-linux-gnu-gcc-10 cmake .. -DSPM_BUILD_TEST=ON -DSPM_ENABLE_SHARED=OFF -DCMAKE_FIND_ROOT_PATH=/usr/${{matrix.arch}}-linux-gnu -DSPM_CROSS_SYSTEM_PROCESSOR=${{matrix.arch}}
4040
make -j$(nproc)
4141
4242
- name: Test on QEMU
4343
if: matrix.arch != 'sparc64' && matrix.arch != 'm68k' && matrix.arch != 'sh4'
4444
run: |
45-
cd ${{github.workspace}}/build
45+
cd build
4646
qemu_arch=`echo ${{matrix.arch}} | sed -e s/powerpc/ppc/ -e s/686/386/`
4747
qemu-${qemu_arch} -L /usr/${{matrix.arch}}-linux-gnu src/spm_test

.github/workflows/wheel.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -80,7 +80,7 @@ jobs:
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
@@ -93,7 +93,7 @@ jobs:
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

Comments
 (0)