Skip to content

Commit

Permalink
ci: add CI to test features in isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed May 23, 2024
1 parent 6c0f80b commit 58cca41
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,57 @@ jobs:
run: |
cargo test --all
cargo test --all --all-features
test:
runs-on: ubuntu-latest
strategy:
matrix:
args:
- "-F csv"
- "-F flatgeobuf"
- "-F flatgeobuf_async"
- "-F geozero"
- "-F ipc_compression"
- "-F parquet"
- "-F parquet_async"
- "-F parquet_compression"
- "-F polylabel"
- "-F postgis"
- "-F rayon"
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test ${{ matrix.args }}
test-with-external-dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
args:
- "-F gdal"
- "-F geos"
- "-F proj"
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install Pixi
run: |
curl -fsSL https://pixi.sh/install.sh | bash
echo "$HOME/.pixi/bin" >> $GITHUB_PATH
echo "GDAL_HOME=$(pwd)/build/.pixi/envs/default" >> "$GITHUB_ENV"
echo "LD_LIBRARY_PATH=$(pwd)/build/.pixi/envs/default/lib" >> "$GITHUB_ENV"
echo "GEOS_LIB_DIR=$(pwd)/build/.pixi/envs/default/lib" >> "$GITHUB_ENV"
# TODO: infer from toml file/lockfile
echo "GEOS_VERSION=3.12.1" >> "$GITHUB_ENV"
echo "PKG_CONFIG_PATH=$(pwd)/build/.pixi/envs/default/lib/pkgconfig" >> "$GITHUB_ENV"
- name: Install build requirements
run: |
cd build
pixi install
- name: Test
run: cargo test ${{ matrix.args }}

0 comments on commit 58cca41

Please sign in to comment.