Skip to content

Commit 0f6b227

Browse files
committed
Hallucinated attempt to fix CI
1 parent b06f16a commit 0f6b227

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/benchmark-sqlglotrs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v5
14+
15+
- name: Setup Python for benchmarks
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y python3-dev
19+
20+
# Get the exact Python linking flags from python3-config
21+
PYTHON_LDFLAGS=$(python3-config --ldflags --embed 2>/dev/null || python3-config --ldflags)
22+
echo "Python LDFLAGS: ${PYTHON_LDFLAGS}"
23+
24+
# Convert to Rust linker arguments
25+
RUST_LINK_ARGS=$(echo "${PYTHON_LDFLAGS}" | sed 's/-l/-C link-arg=-l/g' | sed 's/-L/-C link-arg=-L/g')
26+
echo "RUSTFLAGS=${RUST_LINK_ARGS}" >> $GITHUB_ENV
27+
1428
- uses: boa-dev/criterion-compare-action@v3
1529
with:
1630
branchName: ${{ github.base_ref }}

0 commit comments

Comments
 (0)