Skip to content

Add a GDAL-based item creator #555

Add a GDAL-based item creator

Add a GDAL-based item creator #555

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
CARGO_TERM_VERBOSE: true
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test -F geo -F schemars -F reqwest --no-default-features
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Install GDAL
run: |
brew update
brew install gdal
- name: Test
run: cargo test --all-features
without-gdal:
runs-on: ubuntu-latest
strategy:
matrix:
args:
- "-p stac"
- "-p stac-api"
- "-p stac-async"
- "-p stac-validate"
- "-p stac-cli --no-default-features"
- "-p stac -F reqwest"
- "-p stac -p stac-api -F geo"
- "-p stac -p stac-api -F schemars"
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test ${{ matrix.args }}
with-gdal:
runs-on: ubuntu-latest
strategy:
matrix:
args:
- "-p stac -F gdal"
- "-p stac-cli"
- "--all-features"
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Install GDAL
run: |
sudo apt-get update
sudo apt-get install libgdal-dev
- name: Test
run: cargo test ${{ matrix.args }}
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Install GDAL
run: |
sudo apt-get update
sudo apt-get install libgdal-dev
- name: Doc
run: cargo doc --all-features