Fix: RP2040 draw_ok() incremental — supprime le flicker toutes les 10s #47
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: Android Release | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - 'android/app/src/**' | ||
| - 'android/build.gradle' | ||
| - 'android/app/build.gradle' | ||
| - '.github/workflows/android-release.yml' | ||
| paths-ignore: | ||
| - 'android/compiled/**' | ||
| - 'android/feedbacks/**' | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: write | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup JDK 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '17' | ||
| distribution: 'temurin' | ||
| cache: gradle | ||
| - name: Debug — SDK environment | ||
| run: | | ||
| echo "ANDROID_HOME=$ANDROID_HOME" | ||
| echo "ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT" | ||
| ls $ANDROID_HOME/build-tools/ || echo "No build-tools found" | ||
| ls $ANDROID_HOME/platforms/ || echo "No platforms found" | ||
| - name: Setup local.properties | ||
| run: echo "sdk.dir=$ANDROID_HOME" > android/local.properties | ||
| - name: Accept SDK licenses | ||
| run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses 2>/dev/null || true | ||
| - name: Build APK | ||
| working-directory: android | ||
| run: | | ||
| chmod +x gradlew | ||
| ./gradlew assembleDebug --no-daemon --info 2>&1 | tail -100 | ||
| - name: Copy APK to compiled/ | ||
| run: | | ||
| mkdir -p android/compiled | ||
| cp android/app/build/outputs/apk/debug/app-debug.apk android/compiled/R2-D2_Control.apk | ||
| - name: Commit APK | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git add android/compiled/R2-D2_Control.apk | ||
| git commit -m "ci: update R2-D2_Control.apk [skip ci]" || echo "Rien à committer" | ||
| git push | ||