Implement Scalars on Clone-on-write buffers #213
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: Rust | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint-test: | |
name: Lint and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Cargo fmt | |
run: cargo fmt --all -- --check | |
# Note not sure why this is needed | |
- name: Install protobuf | |
run: | | |
sudo apt-get install libprotobuf-dev protobuf-compiler | |
- run: sudo apt install libgeos-dev | |
# Don't use --all-features as we don't have GDAL 3.6 available in CI | |
- name: "clippy --all" | |
run: cargo clippy --all --features geos --features geozero --tests -- -D warnings | |
- name: "cargo check" | |
run: cargo check --all --features geos --features geozero | |
- name: "cargo test" | |
run: | | |
cargo test --all | |
cargo test --all --features geos --features geozero |