Skip to content

Commit 598302b

Browse files
committed
Add LLVM to the environment
1 parent 121e1f6 commit 598302b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/benchmark.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ on:
3131
description: 'Make flags for CPython build'
3232
required: false
3333
default: '-j'
34+
llvm:
35+
description: 'LLVM version to use'
36+
required: false
37+
default: '19'
3438

3539
jobs:
3640
benchmark:
@@ -61,8 +65,11 @@ jobs:
6165
# Install CPython dependencies using their script
6266
cd cpython
6367
sudo .github/workflows/posix-deps-apt.sh
64-
65-
# Install Memray dependencies
68+
69+
# Install JIT dependencies
70+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ inputs.llvm }}
71+
72+
# Install Memray dependencies
6673
sudo apt-get install -y \
6774
python3-dev \
6875
libdebuginfod-dev \
@@ -73,6 +80,8 @@ jobs:
7380
env:
7481
MEMORY_TRACKER_TOKEN: ${{ secrets.MEMORY_TRACKER_TOKEN }}
7582
run: |
83+
export PATH="$(llvm-config-${{ inputs.llvm }} --bindir):$PATH"
84+
7685
# Build command with conditional flags
7786
CMD="memory-tracker benchmark '${{ github.event.inputs.commit_range }}'"
7887
CMD="$CMD --repo-path ./cpython"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy