Skip to content

Commit 0dd15b2

Browse files
committed
Test adding mirrors
1 parent ff7f015 commit 0dd15b2

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,23 @@ jobs:
738738
LANG: en_US.UTF-8
739739
TZ: UTC
740740
steps:
741+
- name: select termux mirror
742+
run: |
743+
for m in \
744+
"https://termux.mentality.rip/termux-main" \
745+
"https://ftp.agdsn.de/termux/termux-main" \
746+
"https://linux.domainesia.com/applications/termux/termux-main"
747+
do
748+
echo "Trying mirror: $m"
749+
printf "deb %s stable main\n" "$m" > "${PREFIX}/etc/apt/sources.list"
750+
if /entrypoint.sh pkg update -y; then
751+
echo "Selected mirror: $m"
752+
exit 0
753+
fi
754+
done
755+
756+
echo "All mirrors failed"
757+
exit 1
741758
- name: prepare termux
742759
run: |
743760
ln -sf ${PREFIX}/etc/termux/mirrors/default ${PREFIX}/etc/termux/chosen_mirrors

0 commit comments

Comments
 (0)