Skip to content

Commit 19d1aac

Browse files
committed
Merge branch 'master' into dev/wrapper
2 parents d3c42fc + 8a329a8 commit 19d1aac

4,601 files changed

Lines changed: 138574 additions & 34878 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ indent_style = tab
1111
indent_style = space
1212
indent_size = 4
1313

14+
[*.js]
15+
indent_style = space
16+
indent_size = 2
17+
1418
[repo.json]
1519
indent_style = space
1620
indent_size = 2
@@ -34,6 +38,14 @@ indent_size = 2
3438
[ndk-patches/*.h]
3539
indent_style = tab
3640

41+
[scripts/properties.sh]
42+
indent_style = space
43+
indent_size = 4
44+
3745
[scripts/utils/**.sh]
3846
indent_style = space
3947
indent_size = 4
48+
49+
[*.alternatives]
50+
indent_style = space
51+
indent_size = 2

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@
1919
*.png binary
2020
*.tar binary
2121
*.tar.* binary
22+
23+
# File syntax
24+
*.patch.beforehostbuild linguist-language=RAML
25+
*.patch.beforehostbuild linguist-language=Diff

.github/ISSUE_TEMPLATE/01-bug-report.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: "Bug report"
22
description: "Create a report to help us improve"
33
title: "[Bug]: "
44
labels: [untriaged, "bug report"]
5+
type: 'bug'
56
body:
67
- type: markdown
78
attributes:
89
value: |
10+
[![Join the Termux Discord server](https://img.shields.io/discord/641256914684084234.svg?label=&logo=discord&logoColor=ffffff&color=5865F2)](https://discord.gg/HXpF69X) [![Join the Termux space on Matrix](https://img.shields.io/badge/Matrix-%E2%80%8B?style=plastic&logo=matrix&logoColor=white&color=green)](https://matrix.to/#/#Termux:matrix.org) [![Join the Termux server on Telegram](https://img.shields.io/badge/Telegram-%E2%80%8B?style=plastic&logo=telegram&logoColor=white&color=blue)](https://t.me/termux24x7) [![Official subreddit](https://img.shields.io/badge/Reddit-%E2%80%8B?style=plastic&logo=reddit&logoColor=white&color=red)](https://www.reddit.com/r/termux/)
11+
912
This is a bug tracker of the official Termux packages. Please do not report issues of third-party software there, but ask in [GitHub Discussions](https://github.com/termux/termux-packages/discussions) or [Community Social Media](https://wiki.termux.com/wiki/Community) instead. Use search to check whether your issue has been already reported and perhaps solved.
1013
1114
Android versions 5.x and 6.x are not supported anymore. Issues happening on these operating system versions will not be resolved.

.github/ISSUE_TEMPLATE/02-package-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ body:
3535
- label: The project is actively developed.
3636
###### We prefer packaging actively maintained projects
3737
required: false
38-
- label: The project has [existing packages](https://repology.org/projects) and is "well known".
38+
- label: The project has [existing packages](https://repology.org/projects/) and is "well known".
3939
###### We prefer packaging projects with [existing packages on other distributions](https://repology.org/projects).
4040
required: false
4141
- label: Licensed under an [open source license](https://spdx.org/licenses/).
4242
required: true
4343
- label: |
44-
Not available through a language package manager: pip, npm, cpan, cargo, etc.
45-
###### We do not package modules for Ruby, Lua, Python, NodeJS, etc.
44+
Not available through a language package manager: cargo, cpan, dotnet tool, gem, npm, pip, etc.
45+
###### We do not package modules for Lua, NodeJS, Python, Ruby, etc.
4646
###### Unless they require specific tweaks in order to work on Termux, in which case the rest of the packaging policy still applies.
4747
required: true
4848
- label: Not taking up too much disk space (< 100MiB per architecture, exceptions can be made)

.github/workflows/bootstrap_archives.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate bootstrap archives
1+
name: Generate bootstrap archives (android-7)
22

33
on:
44
schedule:
@@ -26,11 +26,11 @@ jobs:
2626
if: github.repository == 'termux/termux-packages'
2727
steps:
2828
- name: Git clone
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030
- name: Create bootstrap archive
3131
run: ./scripts/generate-bootstraps.sh --architectures ${{ matrix.arch }}
3232
- name: Store artifacts
33-
uses: actions/upload-artifact@v4
33+
uses: actions/upload-artifact@v5
3434
with:
3535
name: bootstrap-archives-${{ matrix.arch }}-${{ github.sha }}
3636
path: "*.zip"
@@ -41,11 +41,11 @@ jobs:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- name: Git clone
44-
uses: actions/checkout@v4
44+
uses: actions/checkout@v5
4545
with:
4646
fetch-depth: 0
4747
- name: Fetch bootstrap archives
48-
uses: actions/download-artifact@v4
48+
uses: actions/download-artifact@v6
4949
with:
5050
merge-multiple: true
5151
path: ./
@@ -59,7 +59,7 @@ jobs:
5959
else
6060
tag_rev=1
6161
fi
62-
new_tag="${new_tag}-r${tag_rev}+apt-android-7"
62+
new_tag="${new_tag}-r${tag_rev}+apt.android-7"
6363
git tag "$new_tag"
6464
git push --tags
6565
echo "tag_name=$new_tag" >> $GITHUB_OUTPUT
@@ -69,6 +69,6 @@ jobs:
6969
repo_token: ${{ secrets.GITHUB_TOKEN }}
7070
file: "*.zip"
7171
file_glob: true
72-
release_name: "Bootstrap archives for Termux application"
72+
release_name: "Bootstrap archives for Termux application (apt.android-7)"
7373
tag: ${{ steps.get_tag.outputs.tag_name }}
7474
checksums: sha256,sha512,md5
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Check Repository Health
2+
3+
on:
4+
schedule:
5+
- cron: "0 5 * * 0" # Runs at 05:00am UTC every Sunday
6+
workflow_dispatch:
7+
8+
permissions: {} # none
9+
10+
jobs:
11+
check-repository-health:
12+
if: github.repository == 'termux/termux-packages'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Clone repository
16+
uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 1
19+
- id: generate-apt-packages-list
20+
name: Generate list of packages
21+
run: |
22+
OUTPUT_DIR="$(mktemp -d)"
23+
echo "OUTPUT_DIR=$OUTPUT_DIR" >> "$GITHUB_OUTPUT"
24+
./scripts/generate-apt-packages-list.sh "$OUTPUT_DIR"
25+
- name: Check repository health
26+
run: |
27+
set -euo pipefail
28+
export NODE_OPTIONS="--network-family-autoselection-attempt-timeout=500"
29+
./scripts/check-repository-health.js "${{ steps.generate-apt-packages-list.outputs.OUTPUT_DIR }}" | tee repository-health.txt
30+
- name: Create issue if health check fails
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.TERMUXBOT2_TOKEN }}
33+
if: failure()
34+
run: |
35+
ISSUE_TITLE="Repository Health Check Failed"
36+
ISSUE_BODY=$(cat repository-health.txt)
37+
gh issue create --title "$ISSUE_TITLE" --body "$ISSUE_BODY" --label "health-check" --assignee "thunder-coding"

.github/workflows/codeql.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: "CodeQL analysis of GitHub action jobs"
2+
3+
permissions:
4+
models: none
5+
6+
on:
7+
push:
8+
branches: [ "master", "android-5" ]
9+
pull_request:
10+
branches: [ "master", "android-5" ]
11+
schedule:
12+
# 9:44pm, every Sunday.
13+
- cron: '44 21 * * 0'
14+
15+
jobs:
16+
analyze:
17+
name: Analyze (${{ matrix.language }})
18+
# Runner size impacts CodeQL analysis time. To learn more, please see:
19+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
20+
# - https://gh.io/supported-runners-and-hardware-resources
21+
# - https://gh.io/using-larger-runners (GitHub.com only)
22+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
23+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
24+
permissions:
25+
# required for all workflows
26+
security-events: write
27+
28+
# required to fetch internal or private CodeQL packs
29+
packages: read
30+
31+
# only required for workflows in private repositories
32+
actions: read
33+
contents: read
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
include:
39+
- language: actions
40+
build-mode: none
41+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
42+
# Use `c-cpp` to analyze code written in C, C++ or both
43+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
44+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
45+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
46+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
47+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
48+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
49+
steps:
50+
- name: Checkout repository
51+
uses: actions/checkout@v5
52+
53+
# Add any setup steps before running the `github/codeql-action/init` action.
54+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
55+
# or others). This is typically only required for manual builds.
56+
# - name: Setup runtime (example)
57+
# uses: actions/setup-example@v1
58+
59+
# Initializes the CodeQL tools for scanning.
60+
- name: Initialize CodeQL
61+
uses: github/codeql-action/init@v4
62+
with:
63+
languages: ${{ matrix.language }}
64+
build-mode: ${{ matrix.build-mode }}
65+
# If you wish to specify custom queries, you can do so here or in a config file.
66+
# By default, queries listed here will override any specified in a config file.
67+
# Prefix the list here with "+" to use these queries and those in the config file.
68+
69+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
70+
# queries: security-extended,security-and-quality
71+
72+
- name: Perform CodeQL Analysis
73+
uses: github/codeql-action/analyze@v4
74+
with:
75+
category: "/language:${{matrix.language}}"

.github/workflows/command_not_found.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Command Not Found Rebuild
22

33
on:
44
schedule:
5-
- cron: "0 0 * * 0" # Runs weekly
5+
- cron: "0 4 * * 0" # Runs at 04:00am UTC every Sunday
66
workflow_dispatch:
7-
7+
88
permissions: {} # none
99

1010
jobs:
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Clone repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
with:
2121
fetch-depth: 1
2222
token: ${{ secrets.TERMUXBOT2_TOKEN }}

.github/workflows/docker_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: github.repository == 'termux/termux-packages'
2424
steps:
2525
- name: Clone repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
- name: Build
2828
run: |
2929
cd ./scripts
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Golang validation
2+
3+
permissions:
4+
contents: read
5+
actions: write
6+
7+
on:
8+
workflow_dispatch:
9+
pull_request:
10+
paths:
11+
- 'packages/golang/build.sh'
12+
- 'scripts/build/setup/termux_setup_golang.sh'
13+
14+
jobs:
15+
golang_validation:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
target_arch: [aarch64, arm, i686, x86_64]
20+
fail-fast: false
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v5
24+
with:
25+
fetch-depth: 0
26+
- name: Set process id limit for 32-bit builds depending on aosp-libs
27+
run: echo 65535 | sudo tee /proc/sys/kernel/pid_max
28+
- name: Prepare environment
29+
run: |
30+
./scripts/setup-ubuntu.sh
31+
./scripts/setup-android-sdk.sh
32+
sudo apt install ninja-build
33+
./scripts/free-space.sh
34+
- name: Golang validation
35+
run: ./scripts/bin/golang-validation "${{ matrix.target_arch }}" || exit 1
36+
- name: Upload report artifact
37+
if: always()
38+
uses: actions/upload-artifact@v5
39+
with:
40+
name: report-${{ matrix.target_arch }}
41+
path: /tmp/golang-validation-report.txt

0 commit comments

Comments
 (0)