Skip to content

Commit 9713024

Browse files
committed
[ci] Add CI workflows for Debezium AI modules
1 parent 98dee39 commit 9713024

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Build Debezium AI"
2+
description: "Builds the Debezium AI module"
3+
4+
inputs:
5+
maven-cache-key:
6+
description: "The maven build cache key"
7+
required: true
8+
shell:
9+
description: "The shell to use"
10+
required: false
11+
default: bash
12+
13+
runs:
14+
using: "composite"
15+
steps:
16+
- uses: ./.github/actions/maven-cache
17+
with:
18+
key: ${{ inputs.maven-cache-key }}
19+
20+
- name: Build Debezium AI module
21+
shell: ${{ inputs.shell }}
22+
run: >
23+
./mvnw clean install -B -pl :debezium-ai -am -amd

.github/workflows/debezium-workflow-pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
name: "Detect repository changes"
2626
runs-on: ubuntu-latest
2727
outputs:
28+
ai-changed: ${{ steps.changed-files-ai.outputs.any_changed }}
2829
common-changed: ${{ steps.changed-files-common.outputs.any_changed }}
2930
mongodb-changed: ${{ steps.changed-files-mongodb.outputs.any_changed }}
3031
mariadb-changed: ${{ steps.changed-files-mariadb.outputs.any_changed }}
@@ -203,6 +204,13 @@ jobs:
203204
files: |
204205
quarkus-debezium-parent/**
205206
207+
- name: Get modified files (AI)
208+
id: changed-files-ai
209+
uses: tj-actions/changed-files@v46.0.5
210+
with:
211+
files: |
212+
debezium-ai/**
213+
206214
# Approx 1m
207215
build_cache:
208216
name: "Update Dependencies"
@@ -511,6 +519,18 @@ jobs:
511519
with:
512520
maven-cache-key: maven-debezium-test-build
513521

522+
build_ai:
523+
name: "Debezium AI module"
524+
needs: [ check_style, file_changes ]
525+
runs-on: ubuntu-latest
526+
if: ${{ needs.file_changes.outputs.common-changed == 'true' || needs.file_changes.outputs.ai-changed == 'true' }}
527+
steps:
528+
- name: Checkout Action
529+
uses: actions/checkout@v4
530+
- uses: ./.github/actions/build-debezium-ai
531+
with:
532+
maven-cache-key: maven-debezium-test-build-${{ hashFiles('**/pom.xml') }}
533+
514534
build_extensions:
515535
name: "Debezium Quarkus Extensions"
516536
needs: [ check_style, file_changes ]

.github/workflows/debezium-workflow-push.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,3 +425,15 @@ jobs:
425425
with:
426426
path-core: core
427427
path-server: server
428+
429+
build_ai:
430+
name: "Debezium AI module"
431+
needs: [ check_style ]
432+
runs-on: ubuntu-latest
433+
steps:
434+
- name: Checkout Action
435+
uses: actions/checkout@v4
436+
437+
- uses: ./.github/actions/build-debezium-ai
438+
with:
439+
maven-cache-key: maven-debezium-test-push-build-${{ hashFiles('**/pom.xml') }}

0 commit comments

Comments
 (0)