Skip to content

Commit

Permalink
Add Windows CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed May 20, 2022
1 parent 16230bd commit 3fc2f4c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,38 @@ jobs:
with:
command: test
args: ${{ matrix.features }} --verbose

windows:
name: "ci windows-2019"
runs-on: windows-2019

strategy:
matrix:
features: ["", "--all-features"]

steps:
- uses: actions/checkout@v2
- name: Install GDAL
shell: bash
run: |
curl -S -O https://download.gisinternals.com/sdk/downloads/release-1928-x64-dev.zip
7z x -aoa release-1928-x64-dev.zip
- name: Build and test
shell: bash
run: |
rustc -Vv
cargo -V
vswhere
export GDAL_HOME=$PWD/release-1928-x64
export PROJ_LIB=$GDAL_HOME/bin/proj7/share
export PATH=$GDAL_HOME/bin:$GDAL_HOME/bin/gdal/apps:$PATH
# Workaround for https://github.com/actions/virtual-environments/issues/3316
export PATH=/c/msys64/mingw64/bin:$PATH
gdalinfo --version
export GDAL_VERSION=$(gdalinfo --version | sed 's/GDAL \(.*\), .*/\1/')
cargo build ${{ matrix.features }} -j 1 --tests --verbose
cargo test ${{ matrix.features }} --verbose || true
# Ignore test failures for now. See https://github.com/georust/gdal/issues/219

0 comments on commit 3fc2f4c

Please sign in to comment.