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 Sep 15, 2021
1 parent 435c033 commit 2b59c0d
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,53 @@ 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 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 - we have currently the following errors:
# ---- config::tests::test_clear_option_thread_local stdout ----
# thread 'config::tests::test_clear_option_thread_local' panicked at 'assertion failed: `(left == right)`
# left: `"256"`,
# right: `"DEFAULT"`', src\config.rs:201:9
# ---- raster::tests::test_create_with_band_type_with_options stdout ----
# thread 'raster::tests::test_create_with_band_type_with_options' panicked at 'called `Result::unwrap()` on an `Err` value: NullPointer { method_name: "GDALCreate", msg: "Attempt to create new tiff file `/tmp/test.tif' failed: No error" }', src\raster\tests.rs:285:14
# ---- spatial_ref::tests::auto_identify stdout ----
# thread 'spatial_ref::tests::auto_identify' panicked at 'called `Result::unwrap()` on an `Err` value: OgrError { err: 7, method_name: "OSRAutoIdentifyEPSG" }', src\spatial_ref\tests.rs:207:38
# ---- vector::vector_tests::tests::test_write_features stdout ----
# thread 'vector::vector_tests::tests::test_write_features' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: Other, message: "The process cannot access the file because it is being used by another process." }', src\vector\vector_tests\mod.rs:660:53

0 comments on commit 2b59c0d

Please sign in to comment.