Add a GDAL-based item creator #553
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install GDAL on ubuntu | |
run: sudo apt-get install libgdal-dev | |
- name: Format | |
run: cargo fmt --verbose | |
- name: Build | |
run: cargo build --verbose --all-features | |
- name: Test | |
run: cargo test --verbose --all-features | |
test-stac: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flags: ["", "--features geo", "--features reqwest", "--features schemars", "--features gdal"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build --verbose -p stac ${{ matrix.flags }} | |
- name: Test | |
run: cargo test --verbose -p stac ${{ matrix.flags }} | |
doc: | |
runs-on: ubuntu-latest | |
env: | |
RUSTDOCFLAGS: -Dwarnings | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Doc | |
run: cargo doc --all-features |