mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-02 06:24:16 +02:00
fix(ci): make JBR setup-java resilient to GitHub API rate limits (#5680)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -39,13 +39,21 @@ runs:
|
|||||||
key: jbr-21-${{ runner.os }}-${{ runner.arch }}
|
key: jbr-21-${{ runner.os }}-${{ runner.arch }}
|
||||||
|
|
||||||
- name: Set up JetBrains JDK 21 (for Compose Desktop)
|
- name: Set up JetBrains JDK 21 (for Compose Desktop)
|
||||||
if: inputs.install_jetbrains_jdk == 'true'
|
if: inputs.install_jetbrains_jdk == 'true' && steps.cache-jbr.outputs.cache-hit != 'true'
|
||||||
|
id: setup-jbr
|
||||||
|
continue-on-error: true
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'jetbrains'
|
distribution: 'jetbrains'
|
||||||
|
check-latest: false
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: JBR setup skipped or failed — Gradle will auto-provision via Foojay
|
||||||
|
if: inputs.install_jetbrains_jdk == 'true' && steps.cache-jbr.outputs.cache-hit != 'true' && steps.setup-jbr.outcome == 'failure'
|
||||||
|
shell: bash
|
||||||
|
run: echo "::warning::JBR setup-java failed (likely GitHub API rate limit). Gradle will auto-provision JBR via Foojay toolchain resolver."
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v6
|
uses: gradle/actions/setup-gradle@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user