chore(ci): use local godot mirror on 172.17.0.1:9009
CI / Create Release (push) Has been cancelled
CI / Export Windows (push) Has been cancelled
CI / Export Linux (push) Has been cancelled
Test Suite / Integration Tests (push) Has been cancelled
Test Suite / Code Style Check (push) Has been cancelled
Test Suite / Security Scan (push) Has been cancelled
Test Suite / Unit Tests (GUT) (push) Has been cancelled
CI / Create Release (push) Has been cancelled
CI / Export Windows (push) Has been cancelled
CI / Export Linux (push) Has been cancelled
Test Suite / Integration Tests (push) Has been cancelled
Test Suite / Code Style Check (push) Has been cancelled
Test Suite / Security Scan (push) Has been cancelled
Test Suite / Unit Tests (GUT) (push) Has been cancelled
This commit is contained in:
+17
-89
@@ -27,8 +27,9 @@ jobs:
|
||||
|
||||
- name: Setup Godot
|
||||
run: |
|
||||
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip
|
||||
unzip -q Godot_v4.6-stable_linux.x86_64.zip
|
||||
wget -q http://172.17.0.1:9009/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip \
|
||||
|| wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||
unzip -q godot.zip
|
||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||
chmod +x /usr/local/bin/godot
|
||||
|
||||
@@ -36,14 +37,15 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||
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
|
||||
wget -nv http://172.17.0.1:9009/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-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 -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||
if [ -d /tmp/godot-templates/templates ]; then
|
||||
mv /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
||||
else
|
||||
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
||||
fi
|
||||
ls -la ~/.local/share/godot/export_templates/4.6.stable || true
|
||||
find ~/.local/share/godot/export_templates/4.6.stable -maxdepth 1 -type f | sed -n '1,20p' || true
|
||||
|
||||
- name: Export Windows
|
||||
run: |
|
||||
@@ -74,8 +76,9 @@ jobs:
|
||||
|
||||
- name: Setup Godot
|
||||
run: |
|
||||
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip
|
||||
unzip -q Godot_v4.6-stable_linux.x86_64.zip
|
||||
wget -q http://172.17.0.1:9009/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip \
|
||||
|| wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||
unzip -q godot.zip
|
||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||
chmod +x /usr/local/bin/godot
|
||||
|
||||
@@ -83,14 +86,15 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||
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
|
||||
wget -nv http://172.17.0.1:9009/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-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 -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||
if [ -d /tmp/godot-templates/templates ]; then
|
||||
mv /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
||||
else
|
||||
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
||||
fi
|
||||
ls -la ~/.local/share/godot/export_templates/4.6.stable || true
|
||||
find ~/.local/share/godot/export_templates/4.6.stable -maxdepth 1 -type f | sed -n '1,20p' || true
|
||||
|
||||
- name: Export Linux
|
||||
run: |
|
||||
@@ -104,73 +108,11 @@ jobs:
|
||||
path: build/tekton_armageddon_linux.x86_64
|
||||
retention-days: 7
|
||||
|
||||
export-android:
|
||||
name: Export Android
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Setup SSH config for Gitea
|
||||
run: |
|
||||
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||
ssh-strict: false
|
||||
|
||||
- name: Setup Godot
|
||||
run: |
|
||||
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip
|
||||
unzip -q Godot_v4.6-stable_linux.x86_64.zip
|
||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||
chmod +x /usr/local/bin/godot
|
||||
|
||||
- name: Install export templates
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||
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 -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||
if [ -d /tmp/godot-templates/templates ]; then
|
||||
mv /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||
else
|
||||
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
||||
fi
|
||||
ls -la ~/.local/share/godot/export_templates/4.6.stable || true
|
||||
|
||||
- name: Setup Android SDK
|
||||
run: |
|
||||
set -euo pipefail
|
||||
ANDROID_HOME=/root/Android/Sdk
|
||||
mkdir -p "$ANDROID_HOME"
|
||||
cd "$ANDROID_HOME"
|
||||
wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O cmdline-tools.zip
|
||||
unzip -q cmdline-tools.zip
|
||||
mkdir -p cmdline-tools/latest
|
||||
mv cmdline-tools/* cmdline-tools/latest/ 2>/dev/null || true
|
||||
export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH"
|
||||
echo "$ANDROID_HOME/cmdline-tools/latest/bin" >> "$GITHUB_PATH"
|
||||
echo "$ANDROID_HOME/platform-tools" >> "$GITHUB_PATH"
|
||||
yes | sdkmanager --sdk_root="$ANDROID_HOME" "platform-tools" "platforms;android-34" "build-tools;34.0.0" "ndk;26.1.10909118"
|
||||
|
||||
- name: Export Android
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Android" build/tekton_dash_armageddon.apk
|
||||
|
||||
- name: Upload Android artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tekton-android
|
||||
path: build/tekton_dash_armageddon.apk
|
||||
retention-days: 7
|
||||
|
||||
release:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
needs: [export-windows, export-linux, export-android]
|
||||
needs: [export-windows, export-linux]
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -187,12 +129,6 @@ jobs:
|
||||
name: tekton-linux
|
||||
path: artifacts/linux
|
||||
|
||||
- name: Download Android artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: tekton-android
|
||||
path: artifacts/android
|
||||
|
||||
- name: Get or create Gitea release
|
||||
id: gitea_release
|
||||
env:
|
||||
@@ -215,7 +151,7 @@ jobs:
|
||||
- name: Upload Windows asset
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token *** secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-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"
|
||||
@@ -223,15 +159,7 @@ jobs:
|
||||
- name: Upload Linux asset
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token *** secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-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"
|
||||
|
||||
- name: Upload Android asset
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token *** secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-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"
|
||||
|
||||
Reference in New Issue
Block a user