Update lnx_fiona.yaml with 3.11 #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Windows wheels and test x86_64 | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
build_pyproj: | |
name: pyproj ${{ matrix.python }} ${{ matrix.os }} ${{ matrix.triplet }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "windows-2019" ] | |
python: [ "3.9", "3.10", "3.11" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python }}" | |
- name: Install PROJ with vcpkg adn build wheel | |
env: | |
PROJ_WHEEL: true | |
PROJ_NETWORK: ON | |
GDAL_VERSION: 3.7.3 | |
PROJSOURCE: 9.1.0 | |
BUILD_SHARED_LIBS: ON | |
PYPROJ_VERSION: 3.6.1 | |
REPO_DIR: pyproj | |
BUILD_PROJ: 1 | |
platform: "x64-windows" | |
shell: cmd | |
run: | | |
set PROJ_DIR="C:\Tools\proj-%PROJSOURCE:~0,5%" | |
set | |
REM choco install ninja | |
REM choco install cmake | |
mkdir C:\Tools\vcpkg | |
dir C:\Tools\vcpkg | |
set VCPKG_INSTALLED=C:\Tools\vcpkg\installed\%platform% | |
c: | |
cd \ | |
cd c:\tools | |
dir | |
git clone https://github.com/Microsoft/vcpkg.git > nul | |
.\vcpkg\bootstrap-vcpkg.bat -disableMetrics | |
.\vcpkg\vcpkg.exe install sqlite3[core,tool]:"%platform%" | |
.\vcpkg\vcpkg.exe install tiff:"%platform%" | |
.\vcpkg\vcpkg.exe install curl:"%platform%" | |
dir %VCPKG_INSTALLED%\bin | |
set PATH=%VCPKG_INSTALLED%\bin;%PATH% | |
cd \ | |
cd c:\tools | |
curl -o "proj-%PROJSOURCE:~0,5%.zip" "https://download.osgeo.org/proj/proj-%PROJSOURCE%.zip" | |
7z x -aoa -y "proj-%PROJSOURCE:~0,5%.zip" | |
## | |
cd "%RUNNER_WORKSPACE%\proj-%PROJSOURCE:~0,5%" | |
dir | |
# | |
set BUILD_PROJ=1 | |
mkdir build | |
cd build | |
cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS="%BUILD_SHARED_LIBS%" -DCMAKE_C_FLAGS="/WX" -DCMAKE_CXX_FLAGS="/WX" -DCMAKE_TOOLCHAIN_FILE="%VCPKG_INSTALLATION_ROOT%/scripts/buildsystems/vcpkg.cmake" -DCMAKE_INSTALL_PREFIX="%PROJ_DIR%" | |
ninja -v | |
ninja install | |
set PATH=%PROJ_DIR%\bin;%PATH% | |
set PROJ_DATA=%PROJ_DIR%\share\proj | |
proj | |
#python -m pip wheel . --wheel-dir=${GITHUB_WORKSPACE}/wheels_torepair --no-deps | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
retention-days: 7 |