From 49d76c7825aa0e1a66100e126dae808026822b75 Mon Sep 17 00:00:00 2001 From: Thomas ten Cate Date: Thu, 15 Dec 2022 16:08:00 +0100 Subject: [PATCH] Add GDAL 3.6 to CI --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d95f072..8bc1b424 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,46 @@ env: RUST_BACKTRACE: 1 jobs: + gdal_36: + name: "ci gdal-36" + runs-on: ubuntu-latest + container: + image: osgeo/gdal:ubuntu-full-3.6.0 + + strategy: + matrix: + features: ["", "--all-features"] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install build deps + shell: bash + run: | + apt-get update -y + apt-get install build-essential curl pkg-config libclang-dev -y + curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y + echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH + + - name: Setup building + run: | + export CC="clang-9" + export CXX="clang++-9" + + - name: Install stable + run: | + rustup install --no-self-update --profile minimal stable + rustup component add rustfmt clippy + + - name: Check with Rustfmt + run: cargo fmt --all --check + - name: Check with Clippy + run: cargo clippy --all-targets ${{ matrix.features }} -- -D warnings + - name: Build + run: cargo build ${{ matrix.features }} --verbose + - name: Run tests + run: cargo test ${{ matrix.features }} --verbose + gdal_35: name: "ci gdal-35" runs-on: ubuntu-latest