ci: add bex rc release workflow (#7) #14
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 and validate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - next | |
| - 'feature/*' | |
| - 'fix/*' | |
| - 'hotix/*' | |
| - 'release/*' | |
| jobs: | |
| Build: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java 8 test runtime | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '8' | |
| distribution: 'corretto' | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '25' | |
| distribution: 'corretto' | |
| - name: Setup Gradle | |
| uses: gradle/gradle-build-action@v2 | |
| - name: Execute Gradle build | |
| run: ./gradlew clean build | |
| - name: Archive test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() # run even if build failed | |
| with: | |
| name: test-results | |
| path: build/reports | |
| - name: Archive libs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: libs | |
| path: build/libs |