We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c14b4 commit d305eb0Copy full SHA for d305eb0
1 file changed
.github/workflows/main.yml
@@ -77,11 +77,16 @@ jobs:
77
- name: run benchmark
78
shell: bash
79
run: |
80
- if [ "$RUNNER_OS" = Windows ]; then . /etc/profile; fi
81
- case "$RUNNER_OS" in
82
- Windows) ext=.exe ;;
83
- *) ext= ;;
84
- esac
+ if [ "$RUNNER_OS" = Windows ]; then
+ . /etc/profile
+ # `. /etc/profile` resets PATH to the SDK's own; re-expose the
+ # Python that `actions/setup-python` installed via the
+ # `pythonLocation` env var the action records.
85
+ export PATH="$(cygpath "$pythonLocation"):$PATH"
86
+ ext=.exe
87
+ else
88
+ ext=
89
+ fi
90
python ci/bench-mimalloc.py \
91
--vanilla "./_bench/vanilla/git${ext}" \
92
--mimalloc "./_bench/mimalloc/git${ext}" \
0 commit comments