Skip to content

Commit

Permalink
disable Android (NDK25 is already removed from some GH runners)
Browse files Browse the repository at this point in the history
  • Loading branch information
smanolloff committed Oct 9, 2024
1 parent 90bd291 commit 6c4a257
Showing 1 changed file with 42 additions and 38 deletions.
80 changes: 42 additions & 38 deletions .github/workflows/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,24 @@ jobs:
cmake_args: -G Ninja
preset: windows-mingw-conan-linux
conan_profile: mingw32-linux.jinja
- platform: android-32
os: macos-14
extension: apk
preset: android-conan-ninja-release
conan_profile: android-32
conan_options: --conf tools.android:ndk_path=$ANDROID_NDK_ROOT
artifact_platform: armeabi-v7a
- platform: android-64
os: macos-14
extension: apk
preset: android-conan-ninja-release
conan_profile: android-64
conan_options: --conf tools.android:ndk_path=$ANDROID_NDK_ROOT
artifact_platform: arm64-v8a

# XXX: some runs already fail due to missing NDK 25
# https://github.com/actions/runner-images/issues/10614

# - platform: android-32
# os: macos-14
# extension: apk
# preset: android-conan-ninja-release
# conan_profile: android-32
# conan_options: --conf tools.android:ndk_path=$ANDROID_NDK_ROOT
# artifact_platform: armeabi-v7a
# - platform: android-64
# os: macos-14
# extension: apk
# preset: android-conan-ninja-release
# conan_profile: android-64
# conan_options: --conf tools.android:ndk_path=$ANDROID_NDK_ROOT
# artifact_platform: arm64-v8a
#
# MMAI builds
#
Expand Down Expand Up @@ -174,30 +178,30 @@ jobs:
VCMI_BUILD_PLATFORM: x64
MMAI: ${{matrix.mmai}}

# ensure the ccache for each PR is separate so they don't interfere with each other
# fall back to ccache of the vcmi/vcmi repo if no PR-specific ccache is found
- name: ccache for PRs
uses: hendrikmuhs/ccache-action@v1.2
if: ${{ github.event.number != '' }}
with:
key: ${{ matrix.preset }}-PR-${{ github.event.number }}
restore-keys: |
${{ matrix.preset }}-PR-${{ github.event.number }}
${{ matrix.preset }}-no-PR
# actual cache takes up less space, at most ~1 GB
max-size: "5G"
verbose: 2

- name: ccache for everything but PRs
uses: hendrikmuhs/ccache-action@v1.2
if: ${{ (github.repository == 'vcmi/vcmi' && github.event.number == '' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master')) || github.repository != 'vcmi/vcmi' }}
with:
key: ${{ matrix.preset }}-no-PR
restore-keys: |
${{ matrix.preset }}-no-PR
# actual cache takes up less space, at most ~1 GB
max-size: "5G"
verbose: 2
# # ensure the ccache for each PR is separate so they don't interfere with each other
# # fall back to ccache of the vcmi/vcmi repo if no PR-specific ccache is found
# - name: ccache for PRs
# uses: hendrikmuhs/ccache-action@v1.2
# if: ${{ github.event.number != '' }}
# with:
# key: ${{ matrix.preset }}-PR-${{ github.event.number }}
# restore-keys: |
# ${{ matrix.preset }}-PR-${{ github.event.number }}
# ${{ matrix.preset }}-no-PR
# # actual cache takes up less space, at most ~1 GB
# max-size: "5G"
# verbose: 2

# - name: ccache for everything but PRs
# uses: hendrikmuhs/ccache-action@v1.2
# if: ${{ (github.repository == 'vcmi/vcmi' && github.event.number == '' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master')) || github.repository != 'vcmi/vcmi' }}
# with:
# key: ${{ matrix.preset }}-no-PR
# restore-keys: |
# ${{ matrix.preset }}-no-PR
# # actual cache takes up less space, at most ~1 GB
# max-size: "5G"
# verbose: 2

- name: Prepare Heroes 3 data
env:
Expand Down

0 comments on commit 6c4a257

Please sign in to comment.