forked from pflooky/data-caterer
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/real time sink patterns #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
920a50a
Update version to 0.18.0, add new execution strategies including dura…
pflooky 4854f09
feat(foreign-key): implement strategies and utilities for foreign keys
pflooky 382a8fb
Fix cardinality and nullability config to be at foreign key target le…
pflooky 3d5b20e
fix: revert back plan models changes and unified yaml, cleanup imports
pflooky ad1cdbd
feat: enhance CI/CD workflows for multi-architecture builds
pflooky 5b6a667
fix: update CI/CD workflows to install fakeroot before jpackage
pflooky a08bd42
Merge remote-tracking branch 'origin/main' into feature/real-time-sin…
pflooky a6f8e4c
fix: remove OS specific installation, fix integration test, update qu…
pflooky 0329083
Enhance foreign key strategies with deterministic behavior using hash…
pflooky d4255c3
Refactor YAML plan and task handling, enhance foreign key processing
pflooky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| name: Test Linux ARM64 Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - feature/** | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| linux-amd64: | ||
| runs-on: ubuntu-latest | ||
| name: Build Linux AMD64 (x86_64) | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
| - name: Set version | ||
| run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $GITHUB_ENV | ||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '21' | ||
| java-package: jdk | ||
| architecture: x64 | ||
| distribution: oracle | ||
| - name: Build fat jar | ||
| run: ./gradlew :app:shadowJar | ||
| - name: Package jar as debian package (amd64) | ||
| run: 'jpackage --main-jar data-caterer.jar "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-linux.cfg"' | ||
| - name: List directory | ||
| run: ls -lart | ||
| - name: Upload deb (amd64) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: data-caterer-linux-amd64 | ||
| path: "datacaterer_1.0.0_amd64.deb" | ||
| overwrite: true | ||
|
|
||
| linux-arm64: | ||
| runs-on: ubuntu-latest | ||
| name: Build Linux ARM64 (aarch64) | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
| - name: Set version | ||
| run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $GITHUB_ENV | ||
|
|
||
| # Set up QEMU for cross-platform builds | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
| with: | ||
| platforms: arm64 | ||
|
|
||
| # Set up Docker Buildx | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| # Use x64 JDK to build the fat jar (architecture independent) | ||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '21' | ||
| java-package: jdk | ||
| architecture: x64 | ||
| distribution: oracle | ||
|
|
||
| - name: Build fat jar | ||
| run: ./gradlew :app:shadowJar | ||
|
|
||
| # Use Docker container with ARM64 JDK for jpackage | ||
| - name: Package jar as debian package (arm64) | ||
| run: | | ||
| docker run --rm --platform linux/arm64 \ | ||
| -v $(pwd):/workspace \ | ||
| -w /workspace \ | ||
| arm64v8/eclipse-temurin:21-jdk \ | ||
| bash -c "apt-get update && apt-get install -y fakeroot && jpackage --main-jar data-caterer.jar '@misc/jpackage/jpackage.cfg' '@misc/jpackage/jpackage-linux.cfg'" | ||
|
|
||
| - name: List directory | ||
| run: ls -lart | ||
|
|
||
| - name: Rename output to indicate arm64 | ||
| run: | | ||
| if [ -f "datacaterer_1.0.0_amd64.deb" ]; then | ||
| mv datacaterer_1.0.0_amd64.deb datacaterer_1.0.0_arm64.deb | ||
| fi | ||
|
|
||
| - name: Upload deb (arm64) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: data-caterer-linux-arm64 | ||
| path: "datacaterer_1.0.0_arm64.deb" | ||
| overwrite: true | ||
|
|
||
| # Alternative approach: Use native ARM64 runners (requires GitHub paid plan) | ||
| linux-arm64-native: | ||
| runs-on: ubuntu-24.04-arm64 | ||
| name: Build Linux ARM64 (native runner) | ||
| continue-on-error: true # In case ARM64 runners aren't available | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
| - name: Set version | ||
| run: echo "APP_VERSION=$(grep version gradle.properties | cut -d= -f2)" >> $GITHUB_ENV | ||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '21' | ||
| java-package: jdk | ||
| architecture: aarch64 | ||
| distribution: oracle | ||
| - name: Build fat jar | ||
| run: ./gradlew :app:shadowJar | ||
| - name: Package jar as debian package (arm64) | ||
| run: 'jpackage --main-jar data-caterer.jar "@misc/jpackage/jpackage.cfg" "@misc/jpackage/jpackage-linux.cfg"' | ||
| - name: List directory | ||
| run: ls -lart | ||
| - name: Rename output to indicate arm64 | ||
| run: | | ||
| if [ -f "datacaterer_1.0.0_amd64.deb" ]; then | ||
| mv datacaterer_1.0.0_amd64.deb datacaterer_1.0.0_arm64.deb | ||
| fi | ||
| - name: Upload deb (arm64 native) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: data-caterer-linux-arm64-native | ||
| path: "datacaterer_1.0.0_arm64.deb" | ||
| overwrite: true | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.