chore(ci): only tag release + patch, no testing, cp from /cache
Test Suite / Unit Tests (GUT) (push) Successful in 46s
Release / Export Windows (push) Failing after 45s
Release / Export Linux (push) Failing after 16s
Release / Create Release (push) Has been skipped
Upload PCK to Gitea Release / upload (push) Failing after 47s
Test Suite / Security Scan (push) Failing after 13m23s
Test Suite / Code Style Check (push) Failing after 13m41s
Test Suite / Integration Tests (push) Failing after 14m26s
Build and Upload Binaries / build (push) Failing after 17m44s
Test Suite / Unit Tests (GUT) (push) Successful in 46s
Release / Export Windows (push) Failing after 45s
Release / Export Linux (push) Failing after 16s
Release / Create Release (push) Has been skipped
Upload PCK to Gitea Release / upload (push) Failing after 47s
Test Suite / Security Scan (push) Failing after 13m23s
Test Suite / Code Style Check (push) Failing after 13m41s
Test Suite / Integration Tests (push) Failing after 14m26s
Build and Upload Binaries / build (push) Failing after 17m44s
This commit is contained in:
+44
-65
@@ -1,68 +1,49 @@
|
|||||||
name: CI
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, experimental, patch-release]
|
tags:
|
||||||
pull_request:
|
- 'v*'
|
||||||
branches: [main, experimental, patch-release]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
export-windows:
|
export-windows:
|
||||||
name: Export Windows
|
name: Export Windows
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
ACTIONS_STEP_DEBUG: true
|
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- name: Setup SSH config for Gitea
|
- name: Setup SSH config for Gitea
|
||||||
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: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
|
||||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||||
ssh-strict: false
|
ssh-strict: false
|
||||||
|
|
||||||
- name: Setup Godot from shared cache
|
- name: Setup Godot
|
||||||
run: |
|
run: |
|
||||||
set -e
|
cp /cache/Godot_v4.6-stable_linux.x86_64.zip ./godot.zip
|
||||||
GODOT_SRC="/home/dev/godot-cache/Godot_v4.6-stable_linux.x86_64.zip"
|
|
||||||
if [ -f "$GODOT_SRC" ]; then
|
|
||||||
cp -a "$GODOT_SRC" ./godot.zip
|
|
||||||
else
|
|
||||||
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
|
||||||
fi
|
|
||||||
unzip -q godot.zip
|
unzip -q godot.zip
|
||||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||||
chmod +x /usr/local/bin/godot
|
chmod +x /usr/local/bin/godot
|
||||||
|
|
||||||
- name: Install export templates from shared cache
|
- 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
|
||||||
TPL_SRC="/home/dev/godot-cache/Godot_v4.6-stable_export_templates.tpz"
|
cp /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
||||||
if [ -f "$TPL_SRC" ]; then
|
|
||||||
cp -a "$TPL_SRC" /tmp/godot-templates.tpz
|
|
||||||
else
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||||
if [ -d /tmp/godot-templates/templates ]; then
|
if [ -d /tmp/godot-templates/templates ]; then
|
||||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||||
else
|
else
|
||||||
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||||
fi
|
fi
|
||||||
find ~/.local/share/godot/export_templates/4.6.stable -maxdepth 1 -type f | sed -n '1,20p' || true
|
|
||||||
|
|
||||||
- name: Export Windows
|
- name: Export Windows
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
godot --headless --export-release "Windows Desktop" build/tekton_armageddon_windows.exe
|
godot --headless --export-release "Windows Desktop" build/tekton_armageddon_windows.exe
|
||||||
|
|
||||||
- name: Upload Windows artifact
|
- uses: actions/upload-artifact@v4
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
with:
|
||||||
name: tekton-windows
|
name: tekton-windows
|
||||||
path: build/tekton_armageddon_windows.exe
|
path: build/tekton_armageddon_windows.exe
|
||||||
@@ -77,53 +58,46 @@ 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: Checkout repository
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
with:
|
||||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||||
ssh-strict: false
|
ssh-strict: false
|
||||||
|
|
||||||
- name: Setup Godot from shared cache
|
- name: Setup Godot
|
||||||
run: |
|
run: |
|
||||||
set -e
|
cp /cache/Godot_v4.6-stable_linux.x86_64.zip ./godot.zip
|
||||||
GODOT_SRC="/home/dev/godot-cache/Godot_v4.6-stable_linux.x86_64.zip"
|
|
||||||
if [ -f "$GODOT_SRC" ]; then
|
|
||||||
cp -a "$GODOT_SRC" ./godot.zip
|
|
||||||
else
|
|
||||||
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
|
||||||
fi
|
|
||||||
unzip -q godot.zip
|
unzip -q godot.zip
|
||||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||||
chmod +x /usr/local/bin/godot
|
chmod +x /usr/local/bin/godot
|
||||||
|
|
||||||
- name: Install export templates from shared cache
|
- 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
|
||||||
TPL_SRC="/home/dev/godot-cache/Godot_v4.6-stable_export_templates.tpz"
|
cp /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
||||||
if [ -f "$TPL_SRC" ]; then
|
|
||||||
cp -a "$TPL_SRC" /tmp/godot-templates.tpz
|
|
||||||
else
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||||
if [ -d /tmp/godot-templates/templates ]; then
|
if [ -d /tmp/godot-templates/templates ]; then
|
||||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||||
else
|
else
|
||||||
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||||
fi
|
fi
|
||||||
find ~/.local/share/godot/export_templates/4.6.stable -maxdepth 1 -type f | sed -n '1,20p' || true
|
|
||||||
|
|
||||||
- name: Export Linux
|
- name: Export Linux
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
godot --headless --export-release "Linux/X11" build/tekton_armageddon_linux.x86_64
|
godot --headless --export-release "Linux/X11" build/tekton_armageddon_linux.x86_64
|
||||||
|
|
||||||
- name: Upload Linux artifact
|
- name: Build PCK
|
||||||
uses: actions/upload-artifact@v4
|
run: |
|
||||||
|
godot --headless -s tools/build_patch.gd
|
||||||
|
mkdir -p build
|
||||||
|
mv patch.pck build/tekton_armageddon.pck 2>/dev/null || true
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: tekton-linux
|
name: tekton-linux
|
||||||
path: build/tekton_armageddon_linux.x86_64
|
path: |
|
||||||
|
build/tekton_armageddon_linux.x86_64
|
||||||
|
build/tekton_armageddon.pck
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@@ -131,21 +105,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
needs: [export-windows, export-linux]
|
needs: [export-windows, export-linux]
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Download Windows artifact
|
- uses: actions/download-artifact@v4
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
with:
|
||||||
name: tekton-windows
|
name: tekton-windows
|
||||||
path: artifacts/windows
|
path: artifacts
|
||||||
|
|
||||||
- name: Download Linux artifact
|
- uses: actions/download-artifact@v4
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
with:
|
||||||
name: tekton-linux
|
name: tekton-linux
|
||||||
path: artifacts/linux
|
path: artifacts
|
||||||
|
|
||||||
- name: Get or create Gitea release
|
- name: Get or create Gitea release
|
||||||
id: gitea_release
|
id: gitea_release
|
||||||
@@ -154,11 +125,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 ***" "$API/tags/$TAG_NAME")
|
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]*')
|
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 ***" \
|
-H "Authorization: token $GITEA_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")
|
||||||
@@ -171,7 +142,7 @@ jobs:
|
|||||||
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/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"
|
||||||
|
|
||||||
- name: Upload Linux asset
|
- name: Upload Linux asset
|
||||||
@@ -179,5 +150,13 @@ jobs:
|
|||||||
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/tekton_armageddon_linux.x86_64" \
|
||||||
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
|
||||||
|
|
||||||
|
- name: Upload PCK asset
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||||
|
-H "Content-Type: multipart/form-data" \
|
||||||
|
-F "attachment=@artifacts/tekton_armageddon.pck" \
|
||||||
"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"
|
||||||
|
|||||||
@@ -46,16 +46,29 @@ jobs:
|
|||||||
|
|
||||||
- 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
|
if [ -f /cache/Godot_v4.6-stable_linux.x86_64.zip ]; then
|
||||||
unzip -q Godot_v4.6-stable_linux.x86_64.zip
|
cp -a /cache/Godot_v4.6-stable_linux.x86_64.zip godot.zip
|
||||||
|
else
|
||||||
|
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||||
|
fi
|
||||||
|
unzip -q godot.zip
|
||||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||||
chmod +x /usr/local/bin/godot
|
chmod +x /usr/local/bin/godot
|
||||||
|
|
||||||
- name: Install export templates
|
- name: Install export templates
|
||||||
run: |
|
run: |
|
||||||
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
|
if [ -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then
|
||||||
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
cp -a /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
||||||
|
else
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||||
|
if [ -d /tmp/godot-templates/templates ]; then
|
||||||
|
cp -a /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/
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Run patch build script
|
- name: Run patch build script
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user