Skip to content

Commit

Permalink
ci: use cargo-all-features
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Sep 23, 2024
1 parent 25433f2 commit 0b12680
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 42 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,5 @@ jobs:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check
- name: Check w/ geo
run: cargo check -F geo
- name: Check w/ client
run: cargo check -F client
- name: Test
run: cargo test --all-features
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
sudo apt-get install libgdal-dev
- name: Fmt
run: cargo fmt
- name: Check
run: cargo check --all --all-features
- name: Clippy
run: cargo clippy --all --all-features
- name: Check
run: cargo check-all-features
check-nightly:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,17 @@ jobs:
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: Check w/ no default features
run: cargo check --no-default-features
- name: Check w/ pgstac
run: cargo check --no-default-features -F pgstac
- name: Check w/ python
run: cargo check --no-default-features -F python
- name: Test
run: cargo test --no-default-features -F pgstac -F python
test-cli-with-gdal:
runs-on: ubuntu-latest
strategy:
matrix:
args:
- "--no-default-features -F gdal"
- ""
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
Expand All @@ -59,7 +47,7 @@ jobs:
sudo apt-get update
sudo apt-get install libgdal-dev
- name: Test
run: cargo test ${{ matrix.args }}
run: cargo test --no-default-features -F gdal
test-cli-with-duckdb:
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,15 @@ jobs:
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: Check
run: cargo check
- name: Check w/ geo
run: cargo check -F geo
- name: Check w/ geoarrow
run: cargo check -F geoarrow
- name: Check w/ geoparquet
run: cargo check -F geoparquet
- name: Check w/ object-store
run: cargo check -F object-store
- name: Check w/ reqwest
run: cargo check -F reqwest
- name: Test
run: cargo test -F geo -F geoparquet-compression -F reqwest -F object-store-all
run: cargo test -F geo -F geoparquet-compression -F reqwest -F object-store-all -F validate-blocking
test-core-with-gdal:
runs-on: ubuntu-latest
steps:
Expand All @@ -59,4 +46,4 @@ jobs:
sudo apt-get update
sudo apt-get install libgdal-dev
- name: Test
run: cargo test -F gdal
run: cargo test --all-features
6 changes: 0 additions & 6 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,5 @@ jobs:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check
- name: Check
run: cargo check -F axum
- name: Check
run: cargo check -F pgstac
- name: Test
run: cargo test -F axum -F pgstac
11 changes: 11 additions & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,14 @@ tokio-test = "0.4"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.cargo-all-features]
max_combination_size = 2
denylist = [
"geoparquet-compression",
"object-store-all",
"object-store-aws",
"object-store-azure",
"object-store-gcp",
"object-store-http",
]

0 comments on commit 0b12680

Please sign in to comment.