Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Python

on:
push:
paths: ['ggsql-python/**', '.github/workflows/python.yml']
pull_request:
paths: ['ggsql-python/**', '.github/workflows/python.yml']

jobs:
test:
Expand Down Expand Up @@ -37,13 +35,25 @@ jobs:
workspaces: ggsql-python
shared-key: ${{ matrix.os }}-python

- name: Set up MSVC (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Build wheel
uses: PyO3/maturin-action@v1
with:
working-directory: ggsql-python
command: build
args: --release
sccache: true
env:
# On Windows/MSVC, the cc crate's cl.exe detection bypasses its
# RUSTC_WRAPPER-based sccache fallback. Setting CC/CXX tells the
# cc crate to parse "sccache" as a known wrapper and "cl" as the
# compiler, routing DuckDB C++ builds through sccache.
# ilammy/msvc-dev-cmd puts cl.exe on PATH so sccache can find it.
CC: ${{ runner.os == 'Windows' && 'sccache cl' || '' }}
CXX: ${{ runner.os == 'Windows' && 'sccache cl' || '' }}

- name: Install wheel and test dependencies
shell: bash
Expand Down
Loading