Skip to content

Commit a7aa1c4

Browse files
committed
Add Windows CI job
1 parent 435c033 commit a7aa1c4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

+35
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,38 @@ jobs:
5353
with:
5454
command: test
5555
args: ${{ matrix.features }} --verbose
56+
57+
windows:
58+
name: "ci windows-2019"
59+
runs-on: windows-2019
60+
61+
strategy:
62+
matrix:
63+
features: ["", "--all-features"]
64+
65+
steps:
66+
- uses: actions/checkout@v2
67+
- name: Install GDAL
68+
shell: bash
69+
run: |
70+
curl -S -O https://download.gisinternals.com/sdk/downloads/release-1928-x64-dev.zip
71+
7z x release-1928-x64-dev.zip
72+
- name: Build and test
73+
shell: bash
74+
run: |
75+
rustc -Vv
76+
cargo -V
77+
vswhere
78+
79+
export GDAL_HOME=$PWD/release-1928-x64
80+
export PROJ_LIB=$GDAL_HOME/bin/proj7/share
81+
export PATH=$GDAL_HOME/bin:$GDAL_HOME/bin/gdal/apps:$PATH
82+
# Workaround for https://github.com/actions/virtual-environments/issues/3316
83+
export PATH=/c/msys64/mingw64/bin:$PATH
84+
85+
gdalinfo --version
86+
export GDAL_VERSION=$(gdalinfo --version | sed 's/GDAL \(.*\), .*/\1/')
87+
88+
cargo build ${{ matrix.features }} -j 1 --tests --verbose
89+
cargo test ${{ matrix.features }} --verbose || true
90+
# Ignore test failures for now. See https://github.com/georust/gdal/issues/219

0 commit comments

Comments
 (0)