Skip to content

Commit

Permalink
Add grpc2scylla and scylladb module
Browse files Browse the repository at this point in the history
  • Loading branch information
lvboudre committed Apr 11, 2024
1 parent e470615 commit 61a64ad
Show file tree
Hide file tree
Showing 16 changed files with 1,623 additions and 24 deletions.
60 changes: 49 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
cancel-in-progress: true

on:
pull_request:
tags:
- 'rc*'
push:
branches:
- 'master'
Expand Down Expand Up @@ -38,13 +41,11 @@ jobs:
echo "GEYSER_PLUGIN_NAME=$plugin_name" | tee -a $GITHUB_ENV
echo "GEYSER_PLUGIN_LIB=lib${plugin_lib_name}" | tee -a $GITHUB_ENV
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_STABLE }}
override: true
profile: minimal

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand Down Expand Up @@ -74,13 +75,18 @@ jobs:
- name: Build release tarball
run: ./ci/create-tarball.sh

- name: Rename binaries for ubuntu22 release
run: |
mv target/release/client target/release/client-${{ matrix.os }}
mv target/release/config-check target/release/config-check-${{ matrix.os }}
mv target/release/grpc-google-pubsub target/release/grpc-google-pubsub-${{ matrix.os }}
mv target/release/grpc-kafka target/release/grpc-kafka-${{ matrix.os }}
mv target/release/grpc-scylladb target/release/grpc-scylladb-${{ matrix.os }}
- name: Rename binaries for ubuntu22 release
if: matrix.os == 'ubuntu-22.04'
run: |
mv target/release/client target/release/client-22
mv target/release/config-check target/release/config-check-22
mv target/release/grpc-google-pubsub target/release/grpc-google-pubsub-22
mv target/release/grpc-kafka target/release/grpc-kafka-22
mv ${{ env.GEYSER_PLUGIN_NAME }}-release-x86_64-unknown-linux-gnu.tar.bz2 ${{ env.GEYSER_PLUGIN_NAME }}-release22-x86_64-unknown-linux-gnu.tar.bz2
mv ${{ env.GEYSER_PLUGIN_NAME }}-release-x86_64-unknown-linux-gnu.yml ${{ env.GEYSER_PLUGIN_NAME }}-release22-x86_64-unknown-linux-gnu.yml
Expand All @@ -90,11 +96,16 @@ jobs:
target/release/client.d \
target/release/config-check.d \
target/release/grpc-google-pubsub.d \
target/release/grpc-kafka.d
target/release/grpc-kafka.d \
target/release/grpc-scylladb.d
- name: test new vars
run: |
echo ${{ github.ref_type }}
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@master
with:
tag_name: ${{ env.BUILD_NAME }}
body: |
Expand All @@ -108,3 +119,30 @@ jobs:
target/release/config-check*
target/release/grpc-google-pubsub*
target/release/grpc-kafka*
target/release/grpc-scylladb*
- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-22.04'
with:
name: yellowstone-grpc-${{ github.sha }}-22
path: |
${{ env.GEYSER_PLUGIN_NAME }}-release*
yellowstone-grpc-proto/proto/*.proto
target/release/client-$(( matrix.os }}
target/release/config-check-$(( matrix.os }}
target/release/grpc-google-pubsub-$(( matrix.os }}
target/release/grpc-kafka-$(( matrix.os }}
target/release/grpc-scylladb-$(( matrix.os }}
- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-20.04'
with:
name: yellowstone-grpc-${{ github.sha }}-20
path: |
${{ env.GEYSER_PLUGIN_NAME }}-release*
yellowstone-grpc-proto/proto/*.proto
target/release/client-$(( matrix.os }}
target/release/config-check-$(( matrix.os }}
target/release/grpc-google-pubsub-$(( matrix.os }}
target/release/grpc-kafka-$(( matrix.os }}
target/release/grpc-scylladb-$(( matrix.os }}
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,17 @@ jobs:
echo "GEYSER_PLUGIN_NAME=$plugin_name" | tee -a $GITHUB_ENV
echo "GEYSER_PLUGIN_LIB=lib${plugin_lib_name}" | tee -a $GITHUB_ENV
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
profile: minimal
components: rustfmt

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_STABLE }}
override: true
profile: minimal
components: clippy, rustfmt

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand Down
Loading

0 comments on commit 61a64ad

Please sign in to comment.