File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 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
3539jobs :
3640 benchmark :
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+ if [ "${{ inputs.binary_id }}" = "jit" ]; then
71+ sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ inputs.llvm }}
72+ fi
73+
74+ # Install Memray dependencies
6675 sudo apt-get install -y \
6776 python3-dev \
6877 libdebuginfod-dev \
7382 env :
7483 MEMORY_TRACKER_TOKEN : ${{ secrets.MEMORY_TRACKER_TOKEN }}
7584 run : |
85+ if [ "${{ inputs.binary_id }}" = "jit" ]; then
86+ export PATH="$(llvm-config-${{ inputs.llvm }} --bindir):$PATH"
87+ fi
88+
7689 # Build command with conditional flags
7790 CMD="memory-tracker benchmark '${{ github.event.inputs.commit_range }}'"
7891 CMD="$CMD --repo-path ./cpython"
Original file line number Diff line number Diff line change @@ -110,6 +110,15 @@ def get_standard_binaries():
110110 "icon" : "search" ,
111111 "display_order" : 7 ,
112112 },
113+ {
114+ "id" : "jit" ,
115+ "name" : "JIT Build" ,
116+ "flags" : ["--enable-experimental-jit" ],
117+ "description" : "Just-In-Time compilation enabled." ,
118+ "color" : "#fc03df" ,
119+ "icon" : "zap" ,
120+ "display_order" : 8 ,
121+ },
113122 ]
114123
115124
You can’t perform that action at this time.
0 commit comments