@@ -32,22 +32,25 @@ jobs:
3232 os :
3333 - runner : ubuntu-latest
3434 duckdb-slug : linux-amd64
35- # Installing GDAL is just too slow, for now. We should cache eventually.
36- # - runner: macos-latest
37- # duckdb-slug: osx-universal
38- # https://github.com/stac-utils/rustac-py/issues/1
39- # - windows-latest
35+ include :
36+ - python-version : " 3.11 "
37+ os :
38+ runner : macos-latest
39+ duckdb-slug : osx-universal
4040 steps :
4141 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4242 with :
4343 submodules : true
4444 - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
4545 with :
4646 python-version : ${{ matrix.python-version }}
47+ cache-dependency-glob : |
48+ pyproject.toml
49+ uv.lock
4750 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
4851 - name : Install libduckdb
4952 run : |
50- wget https://github.com/duckdb/duckdb/releases/download/v${{ env.duckdb-version }}/libduckdb-${{ matrix.os.duckdb-slug }}.zip
53+ curl -L -o libduckdb-${{ matrix.os.duckdb-slug }}.zip https://github.com/duckdb/duckdb/releases/download/v${{ env.duckdb-version }}/libduckdb-${{ matrix.os.duckdb-slug }}.zip
5154 mkdir -p ${{ github.workspace }}/opt/duckdb
5255 unzip libduckdb-${{ matrix.os.duckdb-slug }}.zip -d ${{ github.workspace }}/opt/duckdb
5356 - name : Install GDAL
6770 # not worth it to install cairo on macos
6871 if : runner.os == 'ubuntu-latest'
6972 run : uv run mkdocs build --strict
73+ build-windows :
74+ name : Build (Windows)
75+ runs-on : windows-latest
76+ env :
77+ MATURIN_PEP517_ARGS : --features duckdb-bundled
78+ RUSTFLAGS : -C link-arg=Rstrtmgr.lib
79+ steps :
80+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
81+ with :
82+ submodules : true
83+ - uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
84+ with :
85+ python-version : " 3.11"
86+ cache-dependency-glob : |
87+ pyproject.toml
88+ uv.lock
89+ - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
90+ - name : Sync
91+ run : uv sync
7092 import :
7193 name : Import
7294 runs-on : ubuntu-latest
0 commit comments