Commit Graph

314 Commits

Author SHA1 Message Date
Yaksh Bariya 35dc6584c8
ci(bootstrap_archives): use v4.0.0 of upload-release-action 2022-12-28 16:34:40 +05:30
Yaksh Bariya 3759c26c84
chore,ci(bootstrap_archives): do not use deprecated set-output
See
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-12-27 15:54:27 +05:30
Kevin Williams d104b4ab2b
Add Hetzner Logo
Signed-off-by: Kevin Williams <admin@utermux.dev>
2022-12-26 21:52:15 +08:00
Henrik Grimler 6deae8fd0a
scripts: disable uploads to grimler.se
Grimler.se will mirror packages.termux.dev from now on, so that we
have a single origin repo and can use tools like mirrorbits.
2022-12-26 14:48:51 +01:00
xtkoba 18d9ee845e
CI: Build custom Docker image properly
when `scripts/properties.sh` is modified.
2022-12-25 06:56:26 +00:00
Tee KOBAYASHI c1f178cd6b stale.yml: Deprecate "not stale" label
which is useless now that stale bot does not close issues automatically.
2022-12-25 03:23:28 +09:00
Tee KOBAYASHI 042f720729 stale.yml: Do not close issues automatically
Also change the label to "stale" for stale issues as they still have
chances to be fixed.
2022-12-24 19:14:39 +09:00
Tee KOBAYASHI 6f62779076 stale.yml: Only issues 2022-12-24 18:39:19 +09:00
Tee KOBAYASHI 9f7e772ba0 stale.yml: Ignore issues with an assignee 2022-12-24 18:27:58 +09:00
Tee KOBAYASHI 8644a96173 bug-report template: Add "untriaged" label 2022-12-24 17:47:01 +09:00
xtkoba d1acd807dc
stale.yml: And more 2022-12-24 17:27:13 +09:00
xtkoba 430697aa2a
stale.yml: And more 2022-12-24 17:21:59 +09:00
xtkoba c33fa7bcb9
stale.yml: Add additional label to exemptLabels 2022-12-24 08:11:11 +00:00
Henrik Grimler d0fda435a6
README: remove fosshost logo
Main repos are now hosted at another vps provider.
2022-12-10 12:21:21 +01:00
Henrik Grimler ca93111034
Revert "[TEMP] CI: disable uploads"
Migration from fosshost to new vps is more or less complete.

This reverts commit 96c22cf398.
2022-12-10 12:18:35 +01:00
Henrik Grimler 96c22cf398
[TEMP] CI: disable uploads
We are migrating from fosshost to another vps, disable package uploads
until migration is complete.

See termux/termux-packages#13804.
2022-12-10 10:00:01 +01:00
Henrik Grimler c004fd4514
enhance(scripts,packages.yml): sync upload steps
In commit ca2e7bcf73 ("ci(packages): Do not unconditionally publish
repo when no changes are made to other repos") the upload step to
fosshost was updated, but not the one for grimler.se.  Sync the upload
steps so that they are nearly identical again.
2022-10-30 15:17:33 +01:00
Henrik Grimler 5c4841e3a8
fix(scripts,packages.yml): fix duplicate line removal
Need to sort the file before running uniq.  Before this fix
subpackages were printed several times in the
built_${repo}_packages.txt file, causing upload step to upload debs
multiple times for no reason..
2022-10-30 15:14:43 +01:00
dependabot[bot] 505f04f2b0
build(deps): bump docker/login-action from 1 to 2 (#12629)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-30 00:09:05 +01:00
Lucy Phipps 32877373fe
create dependabot.yml for github-actions updates 2022-10-30 00:07:01 +01:00
agnostic-apollo 3b7e145b2a Revert "add(package.yaml): add support to only run upload job"
This reverts commit 5b256ab96d.
2022-10-07 05:45:22 +05:00
agnostic-apollo 5e0b5927c0 fix(packages.yml): fix upload job being skipped if only run upload job toggle is enabled since build job is skipped failing needs condition
https://github.com/actions/runner/issues/491#issuecomment-850884422

Related commit 5b256ab9
2022-10-07 05:33:19 +05:00
agnostic-apollo 5b256ab96d add(package.yaml): add support to only run upload job
If `Run only upload job` toggle is enabled, pass anything as packages value since its required and it will be ignored.
2022-10-07 04:57:17 +05:00
Lucinda May Phipps fdc4ee55cc
packages.yml: run one upload job at a time 2022-10-06 22:24:05 +01:00
agnostic-apollo e9dae011e2 fixed(bootstrap_archives.yml): Do not use natural sort while generating bootstraps.sha256sum 2022-09-17 08:22:55 +05:00
babaric-dev e1b1509c6e fixed(bootstrap_archives.yml): fix invalid file parameter for bootstraps github release upload job broken in 4af58fc0
Related pull request #11960 and #11956
2022-09-17 08:10:16 +05:00
babaric-dev 4af58fc016 chore,ci(bootstrap_archives): Add sha256sum to releases 2022-09-16 23:07:02 +08:00
Henrik Grimler edf4586feb
scripts(workflows/packages): update list of packages to uninstall
When we need to get extra disk space in CI.

Previous build for auto update of clvk failed.
2022-09-15 21:30:30 +02:00
Chongyun Lee 8134416035 ci: switch to 22.04 2022-09-13 18:43:38 +08:00
Chongyun Lee 30ec184fb6
Revert "ci: fix packages list"
This reverts commit 0c92e85834.
2022-09-12 22:54:40 +08:00
Chongyun Lee 7204e671aa
Revert "ci: switch to 22.04"
This reverts commit 8a957b5116.
2022-09-12 22:54:34 +08:00
Chongyun Lee 0c92e85834
ci: fix packages list 2022-09-12 22:24:30 +08:00
Chongyun Lee 8a957b5116 ci: switch to 22.04 2022-09-12 22:15:53 +08:00
Butta a06a89a012 upgpkg(swift): 5.6.2 to 5.6.3 2022-09-03 02:24:55 +05:30
Leonid Pliushch 02eaf661a2
github: fix typo in package request template 2022-08-31 22:17:06 +03:00
Leonid Pliushch 6bb95caf6f
github: update package request template
Updated field for additional information.
2022-08-31 22:15:13 +03:00
Leonid Pliushch 7ef4a119db
github: update package request template
A lot of package requests have descriptions copied from readme, other
distributions or home page websites. This is not how it was intended
to fill the request form originally.

The intention of package description is to help maintainers to pick
the best candidates for packaging and reject packages without practical
use or that were suggested for "just".
2022-08-31 22:09:26 +03:00
Alex fdead17156
chore,ci: use explicit permissions for GitHub Actions
Quoted from #11735:
This commit adds explicit [permissions
section](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions)
to workflows. This is a security best practice because by default
workflows run with [extended set of
permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)
(except from `on: pull_request` [from external
forks](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)).
By specifying any permission explicitly all others are set to none. By
using the principle of least privilege the damage a compromised workflow
can do (because of an
[injection](https://securitylab.github.com/research/github-actions-untrusted-input/)
or compromised third party tool or action) is restricted.\r\nIt is
recommended to have [most strict permissions on the top
level](https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions)
and grant write permissions on [job
level](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs)
case by case.

Co-Authored-By: Alex <93376818+sashashura@users.noreply.github.com>
2022-08-28 08:59:01 +05:30
Leonid Pliushch 47e6537bb2
ci(docker_image.yml): workaround for sometimes unstable ghcr.io
ghcr.io sometimes drops connection when image is pushed from GitHub
Actions. I never observed that behavior when pushing the image built
locally, so don't know what triggers that issue.

The workaround is to just try pushing the image again.
2022-07-23 11:32:57 +03:00
Leonid Pliushch dc3869ad37
enhance(scripts): use GitHub package registry for Docker image
Should provide better (maybe) download speed when using GitHub Actions.
2022-07-23 00:19:08 +03:00
Henrik Grimler 6cf9f35fac
scripts,ci(*): use termux.dev instead of termux.org
We are now mainly promoting and using termux.dev, so lets switch all
the urls.
2022-07-02 10:41:16 +02:00
Henrik Grimler 595969f581
Revert "fix(workflows/packages.yml): Fix uploads to packages.termux.dev by using a working ip address for aptly"
packages.termux.dev should work fully now, so remove workaround.

This reverts commit a3e68e2b89.
2022-07-02 10:24:37 +02:00
Henrik Grimler f5316db82c
fix,ci(packages.yml): specify port when checking repository
Fixes commit a3e68e2b89 ("fix(workflows/packages.yml): Fix uploads
to packages.termux.dev by using a working ip address for aptly").
2022-06-18 19:45:39 +02:00
Henrik Grimler 93e4eb1a75
Revert "Revert "ci(workflows/packages.yml): use packages.termux.dev for uploads""
I reverted the wrong commit.

This reverts commit d090e21390.
2022-06-18 19:08:27 +02:00
Henrik Grimler d090e21390
Revert "ci(workflows/packages.yml): use packages.termux.dev for uploads"
More proper fix by @agnostic-apollo in a3e68e2b89 and 3b76d37dce.

This reverts commit bc9834dfe9.
2022-06-18 18:42:22 +02:00
agnostic-apollo a3e68e2b89 fix(workflows/packages.yml): Fix uploads to packages.termux.dev by using a working ip address for aptly
Related issue #11007
2022-06-18 17:44:33 +05:00
Jia Yuan Lo b469675248
ci(workflows/packages.yml): free disk space when building clvk 2022-06-18 11:54:05 +02:00
Butta 2056aad712 swift: clear up space on CI for longer aarch64 build, until 5.7 is out in a couple months 2022-06-17 16:39:16 +05:30
Henrik Grimler bc9834dfe9
ci(workflows/packages.yml): use packages.termux.dev for uploads
We are migrating from termux.org to termux.dev for all services. .org
redirects to .dev, so should be backward compatible, but url for aptly
scripts need to be updated as they do not handle returned http code
301/302.
2022-06-12 15:15:07 +02:00
agnostic-apollo 0d95692efb
changed(funding): Update funding link to https://termux.dev/donate 2022-06-04 15:34:07 +05:00
agnostic-apollo aecb8bd19d
Fixed(bootstrap_archives): Fix prevent parallel runs implemented in 332e1550
The workflow is not valid. .github/workflows/bootstrap_archives.yml (Line: 9, Col: 10): Unexpected type of value '', expected type: String.
2022-05-29 05:28:33 +05:00
Henrik Grimler a598b1e318
Added: re-add FUNDING.yml with open collective entry
We now accept donations through open collective:
https://opencollective.com/termux
2022-05-23 20:45:50 +02:00
Yaksh Bariya 332e155068
chore,ci(bootstrap_archives): prevent parallel runs
Can lead to race conditions
2022-05-22 14:56:04 +05:30
dev-bz 7c06b80bdb
dart: Update to 2.17.0 (#10672)
* dart: Update to 2.17.0 and add to CI packages that need more disk space
2022-05-15 14:16:32 +05:30
Yaksh Bariya ca2e7bcf73
ci(packages): Do not unconditionally publish repo when no changes are
made to other repos
2022-05-05 18:27:43 +05:30
Henrik Grimler cc441d5dbf
CI: bootstraps: append +apt-android-7 to bootstrap archives
When they are generated from master branch.  This is done since
termux-app now comes in two flavours, one for android >= 5 and one for
android >= 7.
2022-04-28 22:03:18 +02:00
Yaksh Bariya 52c8fd0a41
ci(bootstrap_archives): use specific version 2022-04-28 19:08:59 +05:30
Yaksh Bariya 5edddd95c0
chore,ci(bootstrap_archives): Use Termux's fork of svenstaro/upload-release-action 2022-04-28 15:03:02 +05:30
Henrik Grimler 0e28dda6d7
Remove FUNDING.yml
The accounts specified in the file do not really benefit the termux
project at the moment, so lets not link to them.  Please see
https://github.com/termux/termux-packages/wiki/Donate for how to
donate to individuals until we have set up a new project account at a
suitable site.
2022-04-28 09:38:20 +02:00
Henrik Grimler b4a3d50955
CI: fix regex pattern in free additional disk space step 2022-04-28 09:32:20 +02:00
muku Takeda a98d8d10cc
Add rustc-nightly to run Free additional disk space on host 2022-04-27 10:13:28 +02:00
Yaksh Bariya 029da6a2dd
ci: use v3 of actions/{checkout,download-artifact,upload-artifact} 2022-04-26 19:41:35 +05:30
Yaksh Bariya 4c532c0de5
ci: fix "Free Additional disk space" step
Hardcode so tbat it greps built_termux-main_packages.txt instead of
built_packages.txt
2022-04-21 16:59:53 +05:30
Yaksh Bariya d366fcab14
fixup(ci): Fix duplication of package names in
`built_${repo}_packages.txt`

Caused by 56dbb9cf80
2022-04-21 16:04:16 +05:30
Henrik Grimler 56dbb9cf80
CI: specify distribution in repo.json as well
x11-repo uses distribution x11, and root-repo distribution root.
Store this information in the json file as well, and parse it to set
both REPOSITORY_NAME and REPOSITORY_DISTRIBUTION.

Also remove unnecessary `< repo.json` from jq command, jq accepts the
file as an argument.

This fixes upload issues to x11-repo and root-repo.
2022-04-20 16:37:36 +02:00
Yaksh Bariya 04e7833ede
fixup(ci): do not process '%ci:no-build' on 'workflow_dispatch' 2022-04-19 20:55:54 +05:30
Yaksh Bariya e7431f5aea
fixup(ci): do not lint all packages when `%ci:no-build` is added to HEAD commit 2022-04-19 20:51:26 +05:30
Yaksh Bariya d41ad97af5
ci: fix uploads 2022-04-19 07:19:39 +05:30
Yaksh Bariya 98fff5b520
Fix generation of built_$repo_packages.txt 2022-04-19 07:19:28 +05:30
Yaksh Bariya 7669ea0e3b
ci: fix variables 2022-04-18 15:29:38 +05:30
Yaksh Bariya 1b8ab728e0
ci: fix generate build artifact step 2022-04-18 15:08:31 +05:30
Yaksh Bariya 681d108453
ci: do not use local keyword for declaring variables 2022-04-18 14:57:35 +05:30
Yaksh Bariya f0ea9b922b
monorepo: apply changes suggested by buttaface 2022-04-18 13:57:19 +05:30
Yaksh Bariya 52c383b4d1
chore: switch to monorepo 2022-04-18 13:57:13 +05:30
Yaksh Bariya dcaf44f95b
ci: sleep only when aptly_add_to_repo returns with status code 000
It is just a waste of time to sleep for 3 minutes when the packages are
successfully added and aptly returns 200 http code
2022-04-16 14:07:17 +05:30
Yaksh Bariya cac3799e1d
ci: further split jobs to improve log browsing experience 2022-04-16 14:07:12 +05:30
Yaksh Bariya c4ab7bcfd0
attempt2: Fix repository upload problems
Earlier in 5b8b15e7aa, I had configured
our upload scripts to treat failure of `aptly_add_to_repo` as failure to publish
packages at all. However it won't work, since even if all debs are
uploaded, and aptly_add_to_repo is called, debs are moved from temporary
directory to the repository. The proxy may drop connection during this
moment due to stale connection. And just after that we call
aptly_delete_dir which will delete the temporary directory. On the
server side, aptly will however continue to move debs from temporary
directory. Repository is published, but since the temporary directory is
removed during the transaction, the transaction never completely
succeeds. So only some of the debs are uploaded practically. This is now
fixed by adding a sleep of 180s (should be more than enough for all
stuff)
2022-04-14 17:26:22 +05:30
Henrik Grimler 369db121c1
CI: packages: fix if statement syntax .. again 2022-04-14 09:06:08 +02:00
Henrik Grimler 1c71b0db0d
CI: packages: fix if statement syntax
The script uses bash, so need a closing fi statement.
2022-04-14 08:42:07 +02:00
Yaksh Bariya 5b8b15e7aa
fixup(ci:upload): Treat failure to add debs to repository as error 2022-04-14 11:45:17 +05:30
Yaksh Bariya 8b8cd21cd9
respect '%ci:no-build' also for PRs
Helpful when a large dependency rebuild is being done and changes are tested locally or on fork.
2022-04-13 17:38:13 +05:30
Yaksh Bariya 50a98af858
CI: Upload build artifacts even on build failure
Helpful when CI times out or building a large number of packages for testing and it fails
2022-03-30 08:52:01 +05:30
Aditya Alok 92ea572ede
ci(package_updates.yml): use `contact@termux.org` for git email
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:45:07 +05:30
Aditya Alok 5377dbc8b8 ci(package_updates.yml): adhere to new update system
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-28 23:11:11 +05:30
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