termux-packages/.cirrus.yml
Leonid Pliushch 9fac976ab1 CI: restore old way for building & uploading packages
Do not use pipes for building & uploading packages because:

 * They spawn more jobs on Bintray for metadata generation - each upload is
   done in a separate session.

 * Bintray doesn't handle well concurrent uploads and metadata can be corrupted.
   This happened in all recent builds of platform independent packages - in
   each upload task file had a same name and that triggered problem with metadata.

 * Using delays for workaround for a problem described above works, but isn't
   safe.
2019-07-23 03:08:34 +03:00

43 lines
946 B
YAML

container:
image: termux/package-builder:latest
cpu: 8
memory: 16
task:
name: Build
# 2 hours is a maximal timeout available for free use.
timeout_in: 120m
environment:
matrix:
TERMUX_ARCH: aarch64
TERMUX_ARCH: arm
TERMUX_ARCH: i686
TERMUX_ARCH: x86_64
build_script: |
bash ./scripts/build/ci/cirrus-ci_dispatcher.sh
output_artifacts:
path: "./debs/*.deb"
task:
name: Publish
only_if: $CIRRUS_BRANCH == 'master'
timeout_in: 60m
depends_on:
- Build
environment:
BINTRAY_USERNAME: xeffyr
BINTRAY_API_KEY: ENCRYPTED[c056d345d7a15f90b818dd9382129c27ce4ce2b802831ec890786414fc214c4203714c353a8fef3a6b9b1b1d68e4685e]
BINTRAY_GPG_SUBJECT: termux
BINTRAY_GPG_PASSPHRASE: ENCRYPTED[854c09c78b3318a30d3c9094b1010dfebd4c71ad9173b64479eaafaa7e941b050afaa936ad635af3709382492828316f]
upload_script: |
bash ./scripts/build/ci/cirrus-ci_dispatcher.sh --upload