-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Github Actions for Client, Transport, and Server. Removed unuse…
…d import * Create actions.yml for github action workflows * removed unused javax.websocket dependency on bundle server ServerSecurity.java * disabled proguard minify on release build
- Loading branch information
Showing
7 changed files
with
98 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
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: | ||
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: | | ||
client: | ||
- 'BundleClient/**' | ||
transport: | ||
- 'BundleTransport/**' | ||
server: | ||
- 'bundleserver/**' | ||
# 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 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 BundleServer | ||
working-directory: ./bundleserver | ||
run: mvn package |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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