Commit Graph

154 Commits

Author SHA1 Message Date
Henrik Grimler e585e63454
CI: upload to packages.termux.org again
The cloudflare variant, packages-cf.termux.org, doesn't like large
uploads (> 100M?).
2022-03-25 17:43:25 +01:00
Henrik Grimler 829368cac9
CI: set GPG_PASSHRASE as well for packages.termux.org uploads 2022-03-13 13:44:05 +01:00
Henrik Grimler 3997a41ff0
CI: remove duplicate info message
It's already printed in aptly_publish_repo.
2022-03-13 13:28:22 +01:00
Henrik Grimler e7be93609b
CI: extract deb archive only once
No need to extract it again during grimler.se upload.
2022-03-13 13:15:16 +01:00
Henrik Grimler ccf1b2d111
CI: packages.yml: upload to grimler.se as well 2022-03-13 11:12:42 +01:00
Henrik Grimler e7f3a436ae
CI: packages.yml: refactor, move aptly api functions to scripts/ 2022-03-13 11:12:39 +01:00
Tee KOBAYASHI 8a5fe78e76 github actions: Properly build custom Docker image
when `setup-android-sdk.sh` is modified.
2022-03-13 08:30:29 +09:00
Henrik Grimler a429f53d6f
CI: use cloudflare url for uploading packages
Since the fosshost proxy does not work at the moment.
2022-03-07 11:15:48 +01:00
Henrik Grimler eb66dbe60f
package_updates: switch contact email to one at termux.org 2022-02-18 11:01:58 +01:00
Henrik Grimler a5994b702c
workflows: docker: change auth user, and use docker/login-action
This should make automatic updates work again. docker/login-action
allows for authentication with a token instead of password.

Inspiration taken from workflow in github.com/termux/termux-docker.
2022-02-08 10:23:05 +01:00
Yaksh Bariya 9874a3fd8d
Revert "Delete Package Update workflow" 2022-02-07 17:02:43 +05:30
Yaksh Bariya f6b5153ac9
Delete Package Update workflow 2022-02-07 17:02:31 +05:30
Henrik Grimler 567e223183
Revert "github actions: use per-repository token for automatic package updates workflow"
This reverts commit fc95ff7881.

Unfortunately GITHUB_TOKEN authentication cannot start other action
(recent automatic update pushes haven't been built), so switch back to
a new personal access token (generated by me).

Ref: https://stackoverflow.com/a/67551255
2022-02-02 14:14:57 +01:00
xeffyr fc95ff7881
github actions: use per-repository token for automatic package updates workflow 2022-01-31 19:47:26 +02:00
Henrik Grimler ca5438c1ef
CI: fix occasional dependency upload issue
Previously we were outputting built debs into ./debs instead of
standard folder ./output.  We were also sorting built_packages.txt so
that $(cat ./built_packages.txt) returned an alphabetically sorted
list.

This caused issues for pushes that updated both a package and one or
more of its dependencies, if the dependencies start with a letter that
is later in the alphabet.

Latest example was libforestdb and libsnappy.  Libforestdb depends on
libsnappy, but the buildorder as given to build-package.sh was
"libforestdb libsnappy".  During the libforestdb build libsnappy was
built first, but the deb put into the standard ./output folder (that's
how our build system currently handles built dependency debs).  When
build-package.sh then later tries building libsnappy it skips it
since it has already been built.  We then end up with only libforestdb
in the ./debs folder.

Fix this issue by putting all debs in ./output/, and then moving the
once mentioned in built_packages.txt to ./debs/.

Fixes https://github.com/termux/termux-packages/issues/8773.
2022-01-30 17:06:27 +01:00
Leonid Pliushch 88b2e3efd4
github actions: set --max-time option for curl calls where it can hang for long time 2022-01-15 13:12:39 +02:00
Leonid Pliushch 750a529467
github actions: filter http codes in other places, not only when publishing changes 2021-12-26 22:41:08 +02:00
Leonid Pliushch d332ec887e
github actions: change regexp for packages
Allow dot in package name.
2021-12-20 17:21:55 +02:00
Leonid Pliushch 7aa03f39d8
github actions: filter http codes when publishing changes, handle 504
Aptly may process request for long time enough to make CloudFlare or
server drop connection. Treat this as false failure and don't stop
GitHub Actions with error status.
2021-12-05 12:03:00 +02:00
Yaksh Bariya 99468e7fa8
Fix typo in packages.yml 2021-11-04 19:59:01 +05:30
Yaksh Bariya f3eae9f980
CI: Also package debs for subpackages when workflow_dispatch 2021-11-04 19:38:17 +05:30
Yaksh Bariya 46423f3675
CI: limit package-updates actions scope
Running this action in forks has literally no sense
2021-10-31 10:33:30 +05:30
Leonid Pliushch 3194a85278
github actions: introduce workflow_dispatch trigger for rebuilding packages 2021-10-26 20:19:10 +03:00
Lucinda May Phipps 80a69bf5e0
packages.yml: allow packages with + in name 2021-10-23 13:40:37 +01:00
Leonid Pliushch 8bde94f6a3
github actions: don't use --retry-all-errors curl option as unavailable in this version 2021-10-09 00:24:54 +03:00
Leonid Pliushch 23ba08388b
github actions: get rid of retry loops 2021-10-08 23:48:58 +03:00
Leonid Pliushch 160e810be8
github actions: use cloudflare endpoint in all problematic places
Should finally resolve issues with uploads.
2021-10-08 23:36:57 +03:00
Leonid Pliushch b8b89471f5
github actions: upload delays 30s, retries 3
Do less retries but with higher delay. Previous config didn't work.
2021-10-08 23:24:30 +03:00
Leonid Pliushch 5272d228e5
github actions: specify own user agent for all curl commands 2021-10-08 14:05:25 +03:00
Leonid Pliushch df3a651aa8
github actions: package upload delays 10s and 10 retry attempts
Also noticed that planned initial delay of 3s hasn't been implemented at
all.
2021-10-08 14:01:17 +03:00
Leonid Pliushch 938f0e4da6
github actions: don't exit with failure status on publishing
Revert to old behavior: if connection has been dropped, do not exit
with failure status.
2021-10-07 16:43:29 +03:00
Leonid Pliushch 8c7b2298f5
github actions: retry problematic steps up to 5 times 2021-10-07 16:41:21 +03:00
Leonid Pliushch 49e2fe69cd
github actions: fix curl command for publishing step 2021-10-07 15:52:53 +03:00
Leonid Pliushch 9fc7764e09
github actions: mask curl exit code 2021-10-07 15:36:30 +03:00
Leonid Pliushch c4ac6712bc
github actions: manually handle curl exit code 52 2021-10-07 15:08:36 +03:00
Leonid Pliushch 19acaed7cd
github actions: add time tracking to upload logs 2021-10-07 15:02:11 +03:00
Leonid Pliushch 150479d560
github actions: retry up to 3 times when connection has been dropped 2021-10-07 14:49:01 +03:00
Leonid Pliushch c8a0cfc528
github actions: fix undefined variable in error message 2021-10-07 13:56:23 +03:00
Leonid Pliushch 2283ce7ecd
github actions: fix auto updates script name 2021-10-04 13:23:28 +03:00
Leonid Pliushch 74e4f276c6
scripts: move script for updating packages to bin directory 2021-10-04 13:22:07 +03:00
Henrik Grimler 863ba02411
CI: loop over every tar in termux-packages subfolder 2021-09-21 08:46:23 +02:00
Oskar a30b9e1565
github actions: split artifacts per architecture (#7549) 2021-09-20 18:59:32 +03:00
Leonid Pliushch 4f7e3a11f2
github actions: fix tagging in bootstrap_archives.yml 2021-09-17 23:39:35 +03:00
Leonid Pliushch 33f4b5ca5d
github actions: escape multiline output in bootstrap_archives.yml 2021-09-17 22:17:26 +03:00
Leonid Pliushch 4ee3dd0051
github actions: fetch full git history for bootstrap_archives.yml 2021-09-17 22:06:18 +03:00
Leonid Pliushch ac317d7202
github actions: attach checksums to bootstrap archives release info 2021-09-17 22:02:25 +03:00
Leonid Pliushch 2b63f877c5
github actions: fix typo in bootstrap_archives.yml 2021-09-17 21:57:42 +03:00
Leonid Pliushch e2402dfceb
github actions: set job dependencies in bootstrap_archives.yml 2021-09-17 21:52:48 +03:00
Leonid Pliushch 399cc87aa9
github actions: use separate job for publishing bootstraps 2021-09-17 21:49:08 +03:00
Leonid Pliushch 642d8e5616
github actions: fix missing id for step in bootstrap_archives.yml 2021-09-17 21:46:21 +03:00