Skip to content

Commit 5a124ce

Browse files
Merge branch 'master' into master
2 parents a2a7b59 + 1743537 commit 5a124ce

10 files changed

Lines changed: 45 additions & 20 deletions

File tree

.github/workflows/docker_image.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,52 @@ jobs:
3333
steps:
3434
- name: Clone repository
3535
uses: actions/checkout@v6
36+
37+
# Skip building the Docker image on scheduled runs if the last successful
38+
# image build (the one tagged "latest") is less than IMAGE_MIN_INTERVAL_DAYS old.
39+
- name: Optionally skip building image
40+
if: github.event_name == 'schedule'
41+
id: skip-build
42+
env:
43+
IMAGE_MIN_INTERVAL_DAYS: 30
44+
run: |
45+
LAST_TIMESTAMP=$(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
46+
-H "Accept: application/vnd.github+json" \
47+
"https://api.github.com/users/termux/packages/container/package-builder/versions" |
48+
jq --raw-output 'map(select(.metadata.container.tags | contains(["latest"])))[0].created_at')
49+
LAST_UNIX_TIME=$(date -d "$LAST_TIMESTAMP" +%s)
50+
CURRENT_UNIX_TIME=$(date +%s)
51+
if (( "$CURRENT_UNIX_TIME" - "$LAST_UNIX_TIME" < $IMAGE_MIN_INTERVAL_DAYS*24*60*60 )); then
52+
echo "Skipping building Docker image: last successful build was done on $LAST_TIMESTAMP (< $IMAGE_MIN_INTERVAL_DAYS days)"
53+
echo "skip-build=true" >> "$GITHUB_OUTPUT"
54+
fi
55+
3656
- name: Build
57+
if: ${{ steps.skip-build.outputs.skip-build != 'true' }}
3758
run: |
3859
docker build --tag termux/package-builder:latest scripts/
3960
docker tag termux/package-builder:latest ghcr.io/termux/package-builder:latest
4061
- name: Build (CGCT)
62+
if: ${{ steps.skip-build.outputs.skip-build != 'true' }}
4163
run: |
4264
docker build --tag termux/package-builder-cgct:latest --file scripts/Dockerfile.cgct scripts/
4365
docker tag termux/package-builder-cgct:latest ghcr.io/termux/package-builder-cgct:latest
4466
- name: Login to GHCR
45-
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages'
67+
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages' && steps.skip-build.outputs.skip-build != 'true'
68+
4669
uses: docker/login-action@v3
4770
with:
4871
registry: ghcr.io
4972
username: ${{ github.actor }}
5073
password: ${{ secrets.GITHUB_TOKEN }}
5174
- name: Login to Docker Hub
52-
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages'
75+
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages' && steps.skip-build.outputs.skip-build != 'true'
5376
uses: docker/login-action@v3
5477
with:
5578
username: grimler
5679
password: ${{ secrets.DOCKER_TOKEN }}
5780
- name: Push
58-
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages'
81+
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'termux/termux-packages' && steps.skip-build.outputs.skip-build != 'true'
5982
run: |
6083
# ghcr.io seem to be unstable sometimes. It may suddenly drop connection
6184
# during docker push when some layers are already uploaded. The workaround

packages/awscli/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://aws.amazon.com/cli
22
TERMUX_PKG_DESCRIPTION="Universal Command Line Interface for Amazon Web Services"
33
TERMUX_PKG_LICENSE="Apache-2.0"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="2.33.23"
5+
TERMUX_PKG_VERSION="2.33.24"
66
TERMUX_PKG_SRCURL="https://github.com/aws/aws-cli/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz"
7-
TERMUX_PKG_SHA256=6124e117f30c2640a43afad6c184cb09008c3fe49855ed072a8c6a7a151653bf
7+
TERMUX_PKG_SHA256=2a86eb7c28abb063d006ca5cd44c9416c2cad34bec882437bc4aa669feaf9aec
88
TERMUX_PKG_AUTO_UPDATE=true
99
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+.\d+.\d+"
1010
TERMUX_PKG_DEPENDS="libandroid-posix-semaphore, libandroid-support, libbz2, libexpat, libffi, liblzma, libsqlite, mandoc, openssl, readline, zlib"

packages/flyctl/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://fly.io
22
TERMUX_PKG_DESCRIPTION="Command line tools for fly.io services"
33
TERMUX_PKG_LICENSE="Apache-2.0"
44
TERMUX_PKG_MAINTAINER="Yaksh Bariya <thunder-coding@termux.dev>"
5-
TERMUX_PKG_VERSION="0.4.12"
5+
TERMUX_PKG_VERSION="0.4.13"
66
TERMUX_PKG_SRCURL=https://github.com/superfly/flyctl/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
7-
TERMUX_PKG_SHA256=5e759a9bb6b16bc5b2dd932a2c5920ca087129dce640e0d7363f348eb16cba14
7+
TERMUX_PKG_SHA256=289df7c61c5a80f3a58b03f74a3cc345a9b0ae4a037de79cfe47b73d07e8fdf0
88
TERMUX_PKG_AUTO_UPDATE=true
99
TERMUX_PKG_BUILD_IN_SRC=true
1010
TERMUX_PKG_EXCLUDED_ARCHES="i686, arm"

packages/glab-cli/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://gitlab.com/gitlab-org/cli
22
TERMUX_PKG_DESCRIPTION="A GitLab CLI tool bringing GitLab to your command line"
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="1.85.2"
5+
TERMUX_PKG_VERSION="1.85.3"
66
TERMUX_PKG_SRCURL=https://gitlab.com/gitlab-org/cli/-/archive/v${TERMUX_PKG_VERSION}/cli-${TERMUX_PKG_VERSION}.tar.bz2
7-
TERMUX_PKG_SHA256=b9c2029265472e386fdcf9049b7cdaebce514de440d1391813d7679d52026aaa
7+
TERMUX_PKG_SHA256=ed78b8c90790dc971b62d2608193947b365937b351eab77f99c064ae9b315a18
88
TERMUX_PKG_BUILD_IN_SRC=true
99
TERMUX_PKG_AUTO_UPDATE=true
1010
TERMUX_PKG_EXTRA_MAKE_ARGS="GLAB_VERSION=${TERMUX_PKG_VERSION}"

packages/libcap-ng/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://people.redhat.com/sgrubb/libcap-ng/
22
TERMUX_PKG_DESCRIPTION="Library making programming with POSIX capabilities easier than traditional libcap"
33
TERMUX_PKG_LICENSE="LGPL-2.1"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="2:0.9"
5+
TERMUX_PKG_VERSION="2:0.9.1"
66
TERMUX_PKG_SRCURL=https://github.com/stevegrubb/libcap-ng/archive/refs/tags/v${TERMUX_PKG_VERSION:2}.tar.gz
7-
TERMUX_PKG_SHA256=d7463da4b50924a385e306f585bb05dbe58e212ba846f8593c3b2bd31c6cb46b
7+
TERMUX_PKG_SHA256=52418b8940f83dcc00dcd01d187e67c3399ff65f3fa558442e3a21b415cc46c0
88
TERMUX_PKG_AUTO_UPDATE=true
99
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
1010
--without-python

packages/libzxing-cpp/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/zxing-cpp/zxing-cpp
22
TERMUX_PKG_DESCRIPTION="An open-source, multi-format 1D/2D barcode image processing library implemented in C++"
33
TERMUX_PKG_LICENSE="Apache-2.0"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="3.0.1"
5+
TERMUX_PKG_VERSION="3.0.2"
66
TERMUX_PKG_SRCURL="https://github.com/zxing-cpp/zxing-cpp/releases/download/v${TERMUX_PKG_VERSION}/zxing-cpp-${TERMUX_PKG_VERSION}.tar.gz"
7-
TERMUX_PKG_SHA256=6499792c44b6c297654565539abf67f02e0baa7c35aade6299e5cc722e0a897f
7+
TERMUX_PKG_SHA256=e957f13e2ad4e31badb3d9af3f6ba8999a3ca3c9cc4d6bafc98032f9cce1a090
88
TERMUX_PKG_AUTO_UPDATE=true
99
TERMUX_PKG_DEPENDS="libc++"
1010
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

packages/rclone/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://rclone.org/
22
TERMUX_PKG_DESCRIPTION="rsync for cloud storage"
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="1.73.0"
5+
TERMUX_PKG_VERSION="1.73.1"
66
TERMUX_PKG_SRCURL=https://github.com/rclone/rclone/releases/download/v${TERMUX_PKG_VERSION}/rclone-v${TERMUX_PKG_VERSION}.tar.gz
7-
TERMUX_PKG_SHA256=ce1d062234c4ec3f22cdfd17e24bd13be3942ed877da700caa00ed158f542c1f
7+
TERMUX_PKG_SHA256=1f92b371acf7a41359154296939345f44509e492f8a5adf115da6ee6bf00d905
88
TERMUX_PKG_AUTO_UPDATE=true
99

1010
termux_step_make_install() {

packages/stunnel/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.stunnel.org/
22
TERMUX_PKG_DESCRIPTION="Socket wrapper which can provide TLS support to ordinary applications"
33
TERMUX_PKG_LICENSE="GPL-2.0"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="5.76"
5+
TERMUX_PKG_VERSION="5.77"
66
TERMUX_PKG_SRCURL=https://www.stunnel.org/downloads/stunnel-${TERMUX_PKG_VERSION}.tar.gz
7-
TERMUX_PKG_SHA256=cda37eb4d0fb1e129718ed27ad77b5735e899394ce040bb2be28bbb937fd79e1
7+
TERMUX_PKG_SHA256=ec026f4fae4e0d25b940cc7a9451d925e359e7fd59e9edad20baea66ce45f263
88
TERMUX_PKG_AUTO_UPDATE=true
99
TERMUX_PKG_DEPENDS="openssl"
1010
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-shared --with-ssl=$TERMUX_PREFIX --disable-fips"

packages/teleport-tsh/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/gravitational/teleport
22
TERMUX_PKG_DESCRIPTION="Secure Access for Developers that doesn't get in the way"
33
TERMUX_PKG_LICENSE="Apache-2.0"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="18.6.8"
5+
TERMUX_PKG_VERSION="18.7.0"
66
TERMUX_PKG_SRCURL=https://github.com/gravitational/teleport/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
7-
TERMUX_PKG_SHA256=510572ab5bbb2018d478c0c192fe98d4ae81b4e0ca243c9dc2521db2ba5013f9
7+
TERMUX_PKG_SHA256=a57250671a1879498c629a0f6c06774c62423acf40f193bef438cb0384e75c93
88
TERMUX_PKG_AUTO_UPDATE=true
99
TERMUX_PKG_BUILD_IN_SRC=true
1010
TERMUX_PKG_HOSTBUILD=true

scripts/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ RUN apt-get update && \
3131
# Removed unused parts to make a smaller Docker image:
3232
apt-get remove -yq --autoremove lsb-release software-properties-common && \
3333
apt-get clean && \
34-
rm -rf /var/lib/apt/lists/*
34+
rm -rf /var/lib/apt/lists/* && \
35+
su - builder -c "rm ~/lib/*.zip" && \
36+
su - builder -c "rm -r ~/.android/cache/"
3537

3638
# Switch User
3739
USER builder:builder

0 commit comments

Comments
 (0)