Skip to content

Commit

Permalink
Merge #234
Browse files Browse the repository at this point in the history
234: upgrade ci r=jdroenner 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 Dec 2, 2021
2 parents bda465d + 28f4725 commit c63126f
Show file tree
Hide file tree
Showing 3 changed files with 12,720 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

0 comments on commit c63126f

Please sign in to comment.