add support for full record (key+value) access #219
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| JAVA_VERSION: '11' | |
| JAVA_DISTRO: 'temurin' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| value: [{flink: 1.16.3, kafka-connector: 1.16.3, project-dir: flink-1.16},{flink: 1.18.1, kafka-connector: 3.2.0-1.18, project-dir: flink-1.18},{flink: 1.19.2, kafka-connector: 3.3.0-1.19, project-dir: flink-1.19},{flink: 1.20.1, kafka-connector: 3.4.0-1.20, project-dir: flink-1.20}] | |
| steps: | |
| - name: 'Check out repository' | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'true' | |
| - name: 'Set up Java' | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DISTRO }} | |
| - name: 'Cache Maven packages' | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Setup Gradle | |
| uses: gradle/[email protected] | |
| # Makes sure the example project is built against the SDK build from this CI run | |
| - name: Update version for example | |
| id: version | |
| run: | | |
| RELEASE_VERSION="1.0.0.ci" | |
| FLINK_VERSION=${{ matrix.value.flink }} | |
| KAFKA_CONNECTOR_VERSION=${{ matrix.value.kafka-connector }} | |
| echo "version=$FLINK_VERSION-$RELEASE_VERSION" > sdk/${{ matrix.value.project-dir }}/gradle.properties | |
| sed -i 's/<decodable.pipeline.sdk.version>.*<\/decodable.pipeline.sdk.version>/<decodable.pipeline.sdk.version>'"$FLINK_VERSION-$RELEASE_VERSION"'<\/decodable.pipeline.sdk.version>/g' examples/custom-pipelines-hello-world/pom.xml | |
| sed -i 's/sdkVersion = \x27.*\x27/sdkVersion = \x27'"$FLINK_VERSION-$RELEASE_VERSION"'\x27/g' examples/custom-pipelines-hello-world/build.gradle | |
| sed -i 's/<flink.version>.*<\/flink.version>/<flink.version>'"$FLINK_VERSION"'<\/flink.version>/g' examples/custom-pipelines-hello-world/pom.xml | |
| sed -i 's/flinkVersion = \x27.*\x27/flinkVersion = \x27'"$FLINK_VERSION"'\x27/g' examples/custom-pipelines-hello-world/build.gradle | |
| sed -i 's/<flink.kafka.connector.version>.*<\/flink.kafka.connector.version>/<flink.kafka.connector.version>'"$KAFKA_CONNECTOR_VERSION"'<\/flink.kafka.connector.version>/g' examples/custom-pipelines-hello-world/pom.xml | |
| sed -i 's/kafkaConnectorVersion = \x27.*\x27/kafkaConnectorVersion = \x27'"$KAFKA_CONNECTOR_VERSION"'\x27/g' examples/custom-pipelines-hello-world/build.gradle | |
| - name: Build SDK | |
| run: cd sdk/${{ matrix.value.project-dir }} && ../gradlew build publishToMavenLocal | |
| - name: Build example project with Maven | |
| run: cd examples/custom-pipelines-hello-world && ./mvnw -B clean verify | |
| - name: Build example project with Gradle | |
| run: cd examples/custom-pipelines-hello-world && ./gradlew clean build |