Merge main into gradle-migration (relocate 3 new files onto gradle la… #766
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 Open Integration Engine | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| event_file: | |
| name: "Event File" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Event File | |
| path: ${{ github.event_path }} | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| java-package: 'jdk+fx' | |
| distribution: 'zulu' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3 | |
| with: | |
| validate-wrappers: true | |
| - name: Build OIE (signed) | |
| if: github.ref == 'refs/heads/main' | |
| run: ./gradlew build | |
| - name: Build OIE (unsigned) | |
| if: github.ref != 'refs/heads/main' | |
| run: ./gradlew build -PdisableSigning=true -Pcoverage=true | |
| - name: Package distribution | |
| run: tar czf openintegrationengine.tar.gz -C server/ setup --transform 's|^setup|openintegrationengine/|' | |
| - name: Create artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: oie-build | |
| path: openintegrationengine.tar.gz | |
| - name: Stage Test Results | |
| if: (!cancelled()) | |
| run: | | |
| mkdir -p aggregate-test-results | |
| # Copy the directory structures | |
| cp -r --parents */build/test-results aggregate-test-results/ | |
| - name: Upload Test Results | |
| if: (!cancelled()) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test Results | |
| path: | | |
| aggregate-test-results/**/*.xml | |