Bundle core model unified #73
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: Build Modules | |
# Runs workflow only when pull requests are made to | |
# the 'main' branch | |
on: | |
pull_request: | |
branches: main | |
jobs: | |
# Github Action to detect file changes between | |
# main branch and pull request branch | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
core: ${{ steps.filter.outputs.core }} | |
client: ${{ steps.filter.outputs.client }} | |
transport: ${{ steps.filter.outputs.transport }} | |
server: ${{ steps.filter.outputs.server }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
# Detect any changes to the following folders | |
filters: | | |
core: | |
- 'bundle-core/**' | |
client: | |
- 'BundleClient/**' | |
transport: | |
- 'BundleTransport/**' | |
server: | |
- 'bundleserver/**' | |
# Github Action to Compile bundle-core | |
build-bundle-core: | |
needs: changes | |
#Compile bundle-core only if files were changed here | |
if: ${{ needs.changes.outputs.core == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run maven package on bundle-core | |
working-directory: ./bundle-core | |
run: mvn package | |
# Github Action to Compile BundleClient | |
build-bundle-client: | |
needs: changes | |
# Compile BundleClient only if files were changed here | |
if: ${{ needs.changes.outputs.client == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run maven package on server dependency > bundle-core | |
working-directory: ./bundle-core | |
run: mvn install | |
- name: Run gradle build on BundleClient | |
working-directory: ./BundleClient | |
run: ./gradlew build | |
# Github Action to Compile BundleTransport | |
build-bundle-transport: | |
needs: changes | |
# Compile BundleTransport only if files were changed here | |
if: ${{ needs.changes.outputs.transport == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run gradle build on BundleTransport | |
working-directory: ./BundleTransport | |
run: ./gradlew build | |
# Github Action to Compile bundleserver | |
build-bundle-server: | |
needs: changes | |
# Compile bundleserver only if files were changed here | |
if: ${{ needs.changes.outputs.server == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run maven package on server dependency > bundle-core | |
working-directory: ./bundle-core | |
run: mvn install | |
- name: Run maven package on BundleServer | |
working-directory: ./bundleserver | |
run: mvn package |