From d5bef3002780bcd8f554e8c6e34b8e855f32b065 Mon Sep 17 00:00:00 2001 From: Mark Meredith Date: Mon, 21 Nov 2022 11:49:11 -0500 Subject: [PATCH] test --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d95f072..c7c0c16a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -212,3 +212,37 @@ jobs: run: cargo build ${{ matrix.features }} --verbose - name: Run tests run: cargo test ${{ 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 \ No newline at end of file