Skip to content

Commit 232158f

Browse files
committed
Only install LLVM for JIT builds
1 parent 598302b commit 232158f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/benchmark.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ jobs:
6767
sudo .github/workflows/posix-deps-apt.sh
6868
6969
# Install JIT dependencies
70-
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ inputs.llvm }}
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
7173
7274
# Install Memray dependencies
7375
sudo apt-get install -y \
@@ -80,7 +82,9 @@ jobs:
8082
env:
8183
MEMORY_TRACKER_TOKEN: ${{ secrets.MEMORY_TRACKER_TOKEN }}
8284
run: |
83-
export PATH="$(llvm-config-${{ inputs.llvm }} --bindir):$PATH"
85+
if [ "${{ inputs.binary_id }}" = "jit" ]; then
86+
export PATH="$(llvm-config-${{ inputs.llvm }} --bindir):$PATH"
87+
fi
8488
8589
# Build command with conditional flags
8690
CMD="memory-tracker benchmark '${{ github.event.inputs.commit_range }}'"

0 commit comments

Comments
 (0)