Install Gitea workflow tools before checkout
Some checks failed
Gitea Android APK / build (push) Failing after 0s
Gitea Smoke / smoke (push) Successful in 0s

This commit is contained in:
Codex 2026-07-05 17:23:57 +00:00
parent fc673a0df9
commit 9e3e6d99cc

View File

@ -15,6 +15,16 @@ jobs:
run: |
set -eu
if ! command -v git >/dev/null 2>&1 || ! command -v curl >/dev/null 2>&1 || ! command -v unzip >/dev/null 2>&1; then
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y git curl unzip
else
apt-get update
apt-get install -y git curl unzip
fi
fi
if [ ! -d .git ]; then
WORKDIR="${PWD}/source"
rm -rf "${WORKDIR}"
@ -36,10 +46,10 @@ jobs:
if ! command -v java >/dev/null 2>&1; then
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y openjdk-17-jdk unzip curl
sudo apt-get install -y openjdk-17-jdk
else
apt-get update
apt-get install -y openjdk-17-jdk unzip curl
apt-get install -y openjdk-17-jdk
fi
fi