Clean the yml script
CI / Export Windows (push) Failing after 43s
CI / Export Linux (push) Failing after 1m4s
CI / Export Android (push) Failing after 55s
Test Suite / Unit Tests (GUT) (push) Failing after 39s
Test Suite / Integration Tests (push) Failing after 46s
Test Suite / Code Style Check (push) Failing after 46s
CI / Create Release (push) Has been skipped
Test Suite / Security Scan (push) Failing after 1m1s
CI / Export Windows (push) Failing after 43s
CI / Export Linux (push) Failing after 1m4s
CI / Export Android (push) Failing after 55s
Test Suite / Unit Tests (GUT) (push) Failing after 39s
Test Suite / Integration Tests (push) Failing after 46s
Test Suite / Code Style Check (push) Failing after 46s
CI / Create Release (push) Has been skipped
Test Suite / Security Scan (push) Failing after 1m1s
This commit is contained in:
+45
-59
@@ -7,50 +7,11 @@ on:
|
||||
branches: [main, experimental, patch-release]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Setup SSH config for Gitea
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" > ~/.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
|
||||
sudo mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||
chmod +x /usr/local/bin/godot
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
# Install Godot headless dependencies
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libvulkan1 libx11-6 libxcursor1 libxi6 libxrandr2 libxinerama1 libxi6 libxxf86vm1 libgl1
|
||||
|
||||
- name: Run GUT tests
|
||||
run: |
|
||||
godot --headless -d --path . -s addons/gut/gut_cmdln.gd
|
||||
|
||||
export-windows:
|
||||
name: Export Windows
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
needs: test
|
||||
steps:
|
||||
- name: Setup SSH config for Gitea
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" > ~/.ssh/config
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -72,6 +33,7 @@ jobs:
|
||||
|
||||
- name: Export Windows
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Windows Desktop" build/tekton_armageddon_windows.exe
|
||||
|
||||
- name: Upload Windows artifact
|
||||
@@ -85,13 +47,7 @@ jobs:
|
||||
name: Export Linux
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
needs: test
|
||||
steps:
|
||||
- name: Setup SSH config for Gitea
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" > ~/.ssh/config
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -113,6 +69,7 @@ jobs:
|
||||
|
||||
- name: Export Linux
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Linux/X11" build/tekton_armageddon_linux.x86_64
|
||||
|
||||
- name: Upload Linux artifact
|
||||
@@ -126,13 +83,7 @@ jobs:
|
||||
name: Export Android
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: test
|
||||
steps:
|
||||
- name: Setup SSH config for Gitea
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "Host gitea\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" > ~/.ssh/config
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -161,6 +112,7 @@ jobs:
|
||||
|
||||
- name: Export Android
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Android" build/tekton_dash_armageddon.apk
|
||||
|
||||
- name: Upload Android artifact
|
||||
@@ -197,11 +149,45 @@ jobs:
|
||||
name: tekton-android
|
||||
path: artifacts/android
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
artifacts/windows/tekton_armageddon_windows.exe
|
||||
artifacts/linux/tekton_armageddon_linux.x86_64
|
||||
artifacts/android/tekton_dash_armageddon.apk
|
||||
generate_release_notes: true
|
||||
- name: Get or create Gitea release
|
||||
id: gitea_release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
|
||||
TAG_NAME: ${{ github.ref_name }}
|
||||
run: |
|
||||
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_ID=$(echo "$RELEASE_JSON" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')
|
||||
if [ -z "$RELEASE_ID" ]; then
|
||||
RELEASE_JSON=$(curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\": \"$TAG_NAME\", \"name\": \"$TAG_NAME\"}" \
|
||||
"$API")
|
||||
RELEASE_ID=$(echo "$RELEASE_JSON" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')
|
||||
fi
|
||||
echo "release_id=$RELEASE_ID" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload Windows asset
|
||||
run: |
|
||||
curl -X POST \
|
||||
-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"
|
||||
|
||||
- name: Upload Linux asset
|
||||
run: |
|
||||
curl -X POST \
|
||||
-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