Skip to content

Commit c876a5d

Browse files
committed
Try using cmd
1 parent e00b68d commit c876a5d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bench_runner/templates/_benchmark.src.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,14 @@ jobs:
108108
ref: ${{ env.PYPERFORMANCE_HASH }}
109109
- name: Build Python
110110
if: ${{ steps.should_run.outputs.should_run != 'false' }}
111+
# The build.bat script is much easier to use from cmd
112+
shell: cmd
111113
run: |
112114
cd cpython
113-
PCbuild\build.bat ($env:BUILD_FLAGS -split ' ') ${{ inputs.pgo == true && '--pgo' || '' }} ${{ inputs.jit == true && '--experimental-jit' || '' }} ${{ inputs.tier2 == true && '--experimental-jit-interpreter' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} -c Release ${{ inputs.clang == true && '\"/p:PlatformToolset=clangcl\"' }} ${{ inputs.clang == true && '\"/p:LLVMInstallDir=C:\Program Files\LLVM\"' }} ${{ inputs.clang == true && '\"/p:LLVMToolsVersion=19.1.6\"' }}
115+
PCbuild\build.bat %BUILD_FLAGS% ${{ inputs.pgo == true && '--pgo' || '' }} ${{ inputs.jit == true && '--experimental-jit' || '' }} ${{ inputs.tier2 == true && '--experimental-jit-interpreter' || '' }} ${{ inputs.nogil == true && '--disable-gil' || '' }} -c Release ${{ inputs.clang == true && '"/p:PlatformToolset=clangcl"' }} ${{ inputs.clang == true && '"/p:LLVMInstallDir=C:\Program Files\LLVM"' }} ${{ inputs.clang == true && '"/p:LLVMToolsVersion=19.1.6"' }}
116+
- name: Copy Python to different location
117+
if: ${{ steps.should_run.outputs.should_run != 'false' }}
118+
run: |
114119
# Copy the build products to a place that libraries can find them.
115120
Copy-Item -Path $env:BUILD_DEST -Destination "libs" -Recurse
116121
- name: Install pyperformance

0 commit comments

Comments
 (0)