Skip to content

feat(sql): implement sink configs for s3, lancedb, filesystem, delta, and iceberg #192

feat(sql): implement sink configs for s3, lancedb, filesystem, delta, and iceberg

feat(sql): implement sink configs for s3, lancedb, filesystem, delta, and iceberg #192

Workflow file for this run

# Licensed 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: Package Verification
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
build-and-package:
name: Build & Dist Check
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.7
- name: Configure sccache with fallback
run: |
set +e
if SCCACHE_GHA_ENABLED=true sccache --zero-stats >/dev/null 2>&1; then
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
echo "SCCACHE_AVAILABLE=true" >> "$GITHUB_ENV"
echo "sccache backend is available, enabling compiler cache."
else
echo "RUSTC_WRAPPER=" >> "$GITHUB_ENV"
echo "SCCACHE_GHA_ENABLED=false" >> "$GITHUB_ENV"
echo "SCCACHE_AVAILABLE=false" >> "$GITHUB_ENV"
echo "sccache backend unavailable, falling back to plain rustc."
fi
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
cmake \
libssl-dev \
libcurl4-openssl-dev \
pkg-config \
libsasl2-dev \
protobuf-compiler \
libprotobuf-dev
- name: Cache Cargo
uses: Swatinem/rust-cache@v2
- name: Generate Protocol
run: cargo build --package protocol
- name: Check Formatting
run: cargo fmt -p function-stream -p function-stream-cli -- --check
- name: Initialize Environment
run: make env
- name: Run Clippy
run: cargo clippy --all-targets --workspace -- -D warnings
- name: Run Unit Tests
run: make test
- name: Build & Package (Full)
run: make dist
- name: Build & Package (Lite)
run: make dist-lite
- name: Show sccache Stats
if: always()
run: sccache --show-stats || true
- name: Verify Artifacts
run: |
ls -lh dist/*.tar.gz dist/*.zip
VERSION=$(grep '^version' Cargo.toml | head -1 | awk -F '"' '{print $2}')
test -f "dist/function-stream-${VERSION}.tar.gz"
test -f "dist/function-stream-${VERSION}-lite.tar.gz"