chore(ci): fix export templates install and android cmdline version
CI / Export Windows (push) Failing after 5m23s
CI / Export Linux (push) Failing after 5m3s
Test Suite / Unit Tests (GUT) (push) Successful in 51s
CI / Export Android (push) Failing after 3m20s
Test Suite / Code Style Check (push) Failing after 34s
Test Suite / Integration Tests (push) Failing after 4m1s
CI / Create Release (push) Has been skipped
Test Suite / Security Scan (push) Failing after 5m37s

This commit is contained in:
2026-07-03 11:03:14 +08:00
parent 74de7f15ef
commit 9ddb1dd199
+25 -28
View File
@@ -25,6 +25,12 @@ jobs:
ssh-key: ${{ secrets.TEKTON_SSH_KEY }} ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
ssh-strict: false ssh-strict: false
- name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
ssh-strict: false
- name: Setup Godot - name: Setup Godot
run: | run: |
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip
@@ -34,9 +40,11 @@ jobs:
- name: Install export templates - name: Install export templates
run: | run: |
set -euo pipefail
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable unzip -o -q /tmp/godot-templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
ls -la ~/.local/share/godot/export_templates/4.6.stable || true
- name: Export Windows - name: Export Windows
run: | run: |
@@ -59,21 +67,6 @@ jobs:
run: | run: |
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config
- name: Diagnose git remote connectivity
run: |
echo "--- relevant env vars ---"
env | grep -Ei '^(GITHUB_|CI_|GITEA_)' || true
echo "--- /etc/ssh/ssh_config ---"
cat /etc/ssh/ssh_config
echo "--- raw TCP reachability to 100.79.174.108:222 ---"
timeout 5 bash -c 'cat < /dev/null > /dev/tcp/100.79.174.108/222' && echo "TCP 222: OPEN" || echo "TCP 222: CLOSED/UNREACHABLE"
echo "--- ls-remote against candidate hosts (verbose ssh) ---"
for url in "git@gitea:danchie/tekton.git" "git@git.klud.top:danchie/tekton.git" "ssh://git@100.79.174.108:222/danchie/tekton.git"; do
echo "=== trying $url ==="
GIT_SSH_COMMAND="ssh -vvv -o StrictHostKeyChecking=no -o ConnectTimeout=8" git ls-remote "$url" 2>&1 | tail -40
echo "exit code: $?"
done
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@@ -89,9 +82,11 @@ jobs:
- name: Install export templates - name: Install export templates
run: | run: |
set -euo pipefail
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable unzip -o -q /tmp/godot-templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
ls -la ~/.local/share/godot/export_templates/4.6.stable || true
- name: Export Linux - name: Export Linux
run: | run: |
@@ -129,16 +124,18 @@ jobs:
- name: Install export templates - name: Install export templates
run: | run: |
set -euo pipefail
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable unzip -o -q /tmp/godot-templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
ls -la ~/.local/share/godot/export_templates/4.6.stable || true
- name: Setup Android SDK - name: Setup Android SDK
uses: android-actions/setup-android@v3 uses: android-actions/setup-android@v3
with: with:
api-level: 34 api-level: 34
ndk-version: r26c ndk-version: r26c
cmdline-tools-version: latest cmdline-tools-version: '11.0'
- name: Export Android - name: Export Android
run: | run: |
@@ -186,11 +183,11 @@ jobs:
TAG_NAME: ${{ github.ref_name }} TAG_NAME: ${{ github.ref_name }}
run: | run: |
API="https://git.klud.top/api/v1/repos/danchie/tekton/releases" API="https://git.klud.top/api/v1/repos/danchie/tekton/releases"
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API/tags/$TAG_NAME") RELEASE_JSON=$(curl -s -H "Authorization: token ***" "$API/tags/$TAG_NAME")
RELEASE_ID=$(echo "$RELEASE_JSON" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*') RELEASE_ID=$(echo "$RELEASE_JSON" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')
if [ -z "$RELEASE_ID" ]; then if [ -z "$RELEASE_ID" ]; then
RELEASE_JSON=$(curl -s -X POST \ RELEASE_JSON=$(curl -s -X POST \
-H "Authorization: token $GITEA_TOKEN" \ -H "Authorization: token ***" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"tag_name\": \"$TAG_NAME\", \"name\": \"$TAG_NAME\"}" \ -d "{\"tag_name\": \"$TAG_NAME\", \"name\": \"$TAG_NAME\"}" \
"$API") "$API")
@@ -201,7 +198,7 @@ jobs:
- name: Upload Windows asset - name: Upload Windows asset
run: | run: |
curl -X POST \ curl -X POST \
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \ -H "Authorization: token *** secrets.TEKTON_RELEASE_TOKEN }}" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "attachment=@artifacts/windows/tekton_armageddon_windows.exe" \ -F "attachment=@artifacts/windows/tekton_armageddon_windows.exe" \
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets" "https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
@@ -209,7 +206,7 @@ jobs:
- name: Upload Linux asset - name: Upload Linux asset
run: | run: |
curl -X POST \ curl -X POST \
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \ -H "Authorization: token *** secrets.TEKTON_RELEASE_TOKEN }}" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "attachment=@artifacts/linux/tekton_armageddon_linux.x86_64" \ -F "attachment=@artifacts/linux/tekton_armageddon_linux.x86_64" \
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets" "https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
@@ -217,7 +214,7 @@ jobs:
- name: Upload Android asset - name: Upload Android asset
run: | run: |
curl -X POST \ curl -X POST \
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \ -H "Authorization: token *** secrets.TEKTON_RELEASE_TOKEN }}" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "attachment=@artifacts/android/tekton_dash_armageddon.apk" \ -F "attachment=@artifacts/android/tekton_dash_armageddon.apk" \
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets" "https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"