Godot Engine – Multi-platform 2D and 3D game engine
[CI] Do not fail Android build if Swappy download failed.
Pāvels Nadtočajevsc9e719f9f102
diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.ymlindex 05e04462737..2145c5090af 100644--- a/.github/workflows/android_builds.yml+++ b/.github/workflows/android_builds.yml@@ -12,7 +12,6 @@ env:SCONS_FLAGS: >-dev_mode=yesmodule_text_server_fb_enabled=yes- swappy=yesjobs:build-android:@@ -65,7 +64,15 @@ jobs:uses: ./.github/actions/godot-deps- name: Download Swappy- run: python ./misc/scripts/install_swappy_android.py+ shell: sh+ id: swappy_sdk+ run: |+ if python ./misc/scripts/install_swappy_android.py; then+ echo "SWAPPY_ENABLED=yes" >> "$GITHUB_OUTPUT"+ else+ echo "::warning::Swappy installation failed, building without Swappy support."+ echo "SWAPPY_ENABLED=no" >> "$GITHUB_OUTPUT"+ fi- name: Download Perfettoshell: sh@@ -81,7 +88,7 @@ jobs:- name: Compilationuses: ./.github/actions/godot-buildwith:- scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} profiler=${{ steps.perfetto_sdk.outputs.PROFILER_ENABLED }}+ scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} profiler=${{ steps.perfetto_sdk.outputs.PROFILER_ENABLED }} swappy=${{ steps.swappy_sdk.outputs.SWAPPY_ENABLED }}platform: androidtarget: ${{ matrix.target }}