Feat: Add Kafka integration for Parseable server #936 . #561
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: Ensure parseable builds on all release targets with Kafka feature | |
on: | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- "helm/**" | |
- "assets/**" | |
- "**.md" | |
push: | |
branches: | |
- main | |
jobs: | |
build-linux: | |
name: Build for ${{matrix.target}} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- aarch64-unknown-linux-gnu # linux(arm) | |
- x86_64-unknown-linux-gnu # linux(64 bit) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake clang librdkafka-dev libsasl2-dev libsasl2-2 libssl-dev pkg-config ca-certificates build-essential | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal # minimal component installation (ie, no documentation) | |
target: ${{ matrix.target }} | |
override: true | |
- name: Build with Kafka feature | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --target ${{matrix.target}} --features kafka | |
build-windows: | |
name: Build for windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal # minimal component installation (ie, no documentation) | |
default: true | |
override: true | |
- name: Build on windows | |
run: cargo build --target x86_64-pc-windows-msvc | |
build-macos: | |
name: Build for ${{matrix.target}} | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
target: | |
- aarch64-apple-darwin # macos(arm) | |
- x86_64-apple-darwin # macos(intel 64 bit) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
brew install cmake llvm librdkafka openssl cyrus-sasl pkg-config ca-certificates | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
target: ${{ matrix.target }} | |
override: true | |
- name: Build on ${{ matrix.target }} | |
run: cargo build --target ${{ matrix.target }} --features kafka |