We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06f16a commit 0f6b227Copy full SHA for 0f6b227
.github/workflows/benchmark-sqlglotrs.yml
@@ -11,6 +11,20 @@ jobs:
11
runs-on: ubuntu-latest
12
steps:
13
- 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
28
- uses: boa-dev/criterion-compare-action@v3
29
with:
30
branchName: ${{ github.base_ref }}
0 commit comments