Browse Source

CI: try to cache android apk builds

and build qml arm64 on every commit
patch-4
SomberNight 2 years ago
parent
commit
7328386413
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 47
      .cirrus.yml

47
.cirrus.yml

@ -174,39 +174,52 @@ task:
CIRRUS_DOCKER_CONTEXT: contrib/build-wine CIRRUS_DOCKER_CONTEXT: contrib/build-wine
task: task:
name: Android build (Kivy arm64) name: Android build (Kivy $APK_ARCH)
container: container:
dockerfile: contrib/android/Dockerfile dockerfile: contrib/android/Dockerfile
cpu: 2 cpu: 2
memory: 2G memory: 2G
env:
APK_ARCH: arm64-v8a
p4a_cache:
folders:
- ".buildozer/android/platform/build-$APK_ARCH/packages"
- ".buildozer/android/platform/build-$APK_ARCH/build"
fingerprint_script:
# note: should *at least* depend on Dockerfile and p4a_recipes/, but contrib/android/ is simplest
- find contrib/android/ -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum
- echo "kivy $APK_ARCH"
populate_script: mkdir -p ".buildozer/android/platform/$APK_ARCH"/{packages,build}
build_script: build_script:
- ./contrib/android/make_apk.sh kivy arm64-v8a debug - ./contrib/android/make_apk.sh kivy "$APK_ARCH" debug
binaries_artifacts:
path: "dist/*"
task:
name: Android build (QML arm64)
container:
dockerfile: contrib/android/Dockerfile
cpu: 8
memory: 24G
build_script:
- ./contrib/android/make_apk.sh qml arm64-v8a debug
binaries_artifacts: binaries_artifacts:
path: "dist/*" path: "dist/*"
only_if: $CIRRUS_TAG != '' || $CIRRUS_BRANCH == 'ci-qml-beta'
task: task:
name: Android build (QML arm32) name: Android build (QML $APK_ARCH)
container: container:
dockerfile: contrib/android/Dockerfile dockerfile: contrib/android/Dockerfile
cpu: 8 cpu: 8
memory: 24G memory: 24G
matrix:
- env:
APK_ARCH: arm64-v8a
- env:
APK_ARCH: armeabi-v7a
only_if: $CIRRUS_TAG != '' || $CIRRUS_BRANCH == 'ci-qml-beta'
p4a_cache:
folders:
- ".buildozer/android/platform/build-$APK_ARCH/packages"
- ".buildozer/android/platform/build-$APK_ARCH/build"
fingerprint_script:
# note: should *at least* depend on Dockerfile and p4a_recipes/, but contrib/android/ is simplest
- find contrib/android/ -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum
- echo "qml $APK_ARCH"
populate_script: mkdir -p ".buildozer/android/platform/$APK_ARCH"/{packages,build}
build_script: build_script:
- ./contrib/android/make_apk.sh qml armeabi-v7a debug - ./contrib/android/make_apk.sh qml "$APK_ARCH" debug
binaries_artifacts: binaries_artifacts:
path: "dist/*" path: "dist/*"
only_if: $CIRRUS_TAG != '' || $CIRRUS_BRANCH == 'ci-qml-beta'
task: task:
name: MacOS build name: MacOS build

Loading…
Cancel
Save