build: vendor kxml2 jar to eliminate JitPack dependency #1148
Workflow file for this run
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: CommCare Core Build | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'formplayer' | |
| - 'kotlin-port' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| - 'formplayer' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| JAVA_VERSION: '17' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: 'adopt' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle (retry on dependency timeout) | |
| run: | | |
| # Retry up to 3 times to handle JitPack flakiness | |
| for attempt in 1 2 3; do | |
| echo "=== Build attempt $attempt ===" | |
| if ./gradlew build --no-daemon; then | |
| echo "Build succeeded on attempt $attempt" | |
| exit 0 | |
| fi | |
| if [ $attempt -lt 3 ]; then | |
| echo "Build failed, retrying in 30s..." | |
| sleep 30 | |
| fi | |
| done | |
| echo "Build failed after 3 attempts" | |
| exit 1 |