Skip to content

Commit d305eb0

Browse files
committed
fixup! ci: replace workflow set with mimalloc benchmark
Assisted-by: Claude Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent d3c14b4 commit d305eb0

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,16 @@ jobs:
7777
- name: run benchmark
7878
shell: bash
7979
run: |
80-
if [ "$RUNNER_OS" = Windows ]; then . /etc/profile; fi
81-
case "$RUNNER_OS" in
82-
Windows) ext=.exe ;;
83-
*) ext= ;;
84-
esac
80+
if [ "$RUNNER_OS" = Windows ]; then
81+
. /etc/profile
82+
# `. /etc/profile` resets PATH to the SDK's own; re-expose the
83+
# Python that `actions/setup-python` installed via the
84+
# `pythonLocation` env var the action records.
85+
export PATH="$(cygpath "$pythonLocation"):$PATH"
86+
ext=.exe
87+
else
88+
ext=
89+
fi
8590
python ci/bench-mimalloc.py \
8691
--vanilla "./_bench/vanilla/git${ext}" \
8792
--mimalloc "./_bench/mimalloc/git${ext}" \

0 commit comments

Comments
 (0)