Skip to content

fix(rust/sedona-raster-functions): RasterExecutor always call the closure only once for scalar raster input #683

fix(rust/sedona-raster-functions): RasterExecutor always call the closure only once for scalar raster input

fix(rust/sedona-raster-functions): RasterExecutor always call the closure only once for scalar raster input #683

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: examples
on:
pull_request:
branches:
- main
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/rust.yml'
- 'rust/**'
- 'c/**'
- 'examples/**'
push:
branches:
- main
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}-rust
cancel-in-progress: true
permissions:
contents: read
defaults:
run:
shell: bash -l -eo pipefail {0}
env:
# At GEOS updated to 3.14.0
VCPKG_REF: 5a01de756c28279ddfdd2b061d1c75710a6255fa
jobs:
rust:
strategy:
fail-fast: false
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
steps:
- uses: actions/checkout@v6
- name: Use stable Rust
id: rust
run: |
rustup toolchain install stable --no-self-update
rustup default stable
- uses: Swatinem/rust-cache@v2
with:
# Update this key to force a new cache
prefix-key: "rust-${{ matrix.name }}-v5"
- name: Install dependencies
shell: bash
run: |
sudo apt-get update && sudo apt-get install -y libgeos-dev
- name: Build and run examples/sedonadb-rust
shell: bash
run: |
cd examples/sedonadb-rust
# Use current PR/branch commit instead of main branch
if [ -n "${{ github.event.pull_request.head.sha }}" ]; then
REV="${{ github.event.pull_request.head.sha }}"
REPO="${{ github.event.pull_request.head.repo.full_name }}"
else
REV="${{ github.sha }}"
REPO="apache/sedona-db"
fi
sed -i "s|git = \"https://github.com/apache/sedona-db.git\"|git = \"https://github.com/${REPO}.git\", rev = \"${REV}\"|" Cargo.toml
cat Cargo.toml
cargo run