Skip to content

Commit

Permalink
Merge #234
Browse files Browse the repository at this point in the history
234: upgrade ci r=lnicola a=geohardtke

CI should now build and test against gdal 3.0, 3.1, 3.2, 3.3 and 3.4

Unfortunately some tests are now failing. Any idea?

 

Co-authored-by: Leonardo Hardtke <leonardo.hardtke@des.qld.gov.au>
Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>
Co-authored-by: geohardtke <48337686+geohardtke@users.noreply.github.com>
  • Loading branch information
4 people committed Jan 12, 2022
2 parents 00adecc + 28f4725 commit c0396ca
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 9 deletions.
209 changes: 207 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -9,10 +9,215 @@ on:
workflow_dispatch:



jobs:
gdal_34:
name: "ci gdal-34"
runs-on: ubuntu-latest
container:
image: osgeo/gdal:ubuntu-full-3.4.0

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

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install build deps
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy


- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose

gdal_33:
name: "ci gdal-33"
runs-on: ubuntu-latest
container:
image: osgeo/gdal:ubuntu-full-3.3.0

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

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install build deps
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy


- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose


gdal_32:
name: "ci gdal-32"
runs-on: ubuntu-latest
container:
image: osgeo/gdal:ubuntu-full-3.2.0

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

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install build deps
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy


- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose

gdal_31:
name: "ci gdal-31"
runs-on: ubuntu-latest
container:
image: osgeo/gdal:ubuntu-full-3.1.0

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

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install build deps
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy


- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose

ubuntu_20_04:
name: "ci ubuntu-20.04"
gdal_30:
name: "ci gdal-30"
runs-on: "ubuntu-20.04"

strategy:
Expand Down
23 changes: 16 additions & 7 deletions src/spatial_ref/tests.rs
Expand Up @@ -185,21 +185,30 @@ fn failing_transformation() {

#[test]
fn auto_identify() {
// retreived from https://epsg.io/32632, but deleted the `AUTHORITY["EPSG","32632"]`
let mut spatial_ref = SpatialRef::from_wkt(
r#"
PROJCS["WGS_1984_UTM_Zone_32N",
GEOGCS["GCS_WGS_1984",
DATUM["D_WGS_1984",
SPHEROID["WGS_1984",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJCS["WGS 84 / UTM zone 32N",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",9],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH]]
"#,
)
.unwrap();
Expand Down

0 comments on commit c0396ca

Please sign in to comment.