chore: remove unused workflows
This commit is contained in:
@@ -1,149 +0,0 @@
|
||||
name: Build Artifacts
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
platform:
|
||||
description: 'Platform to build'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- windows
|
||||
- linux
|
||||
- android
|
||||
- all
|
||||
version:
|
||||
description: 'Version tag (optional)'
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
name: Build Windows
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
if: github.event.inputs.platform == 'windows' || github.event.inputs.platform == 'all'
|
||||
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: |
|
||||
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
|
||||
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
||||
|
||||
- name: Export Windows
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Windows Desktop" build/tekton_armageddon_${{ github.event.inputs.version || 'dev' }}_windows.exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tekton-windows-${{ github.event.inputs.version || 'dev' }}
|
||||
path: build/tekton_armageddon_${{ github.event.inputs.version || 'dev' }}_windows.exe
|
||||
retention-days: 30
|
||||
|
||||
build-linux:
|
||||
name: Build Linux
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
if: github.event.inputs.platform == 'linux' || github.event.inputs.platform == 'all'
|
||||
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: |
|
||||
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
|
||||
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
||||
|
||||
- name: Export Linux
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Linux/X11" build/tekton_armageddon_${{ github.event.inputs.version || 'dev' }}_linux.x86_64
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tekton-linux-${{ github.event.inputs.version || 'dev' }}
|
||||
path: build/tekton_armageddon_${{ github.event.inputs.version || 'dev' }}_linux.x86_64
|
||||
retention-days: 30
|
||||
|
||||
build-android:
|
||||
name: Build Android
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
if: github.event.inputs.platform == 'android' || github.event.inputs.platform == 'all'
|
||||
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: |
|
||||
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
|
||||
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
with:
|
||||
api-level: 34
|
||||
ndk-version: r26c
|
||||
cmdline-tools-version: latest
|
||||
|
||||
- name: Export Android
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Android" build/tekton_dash_armageddon_${{ github.event.inputs.version || 'dev' }}.apk
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tekton-android-${{ github.event.inputs.version || 'dev' }}
|
||||
path: build/tekton_dash_armageddon_${{ github.event.inputs.version || 'dev' }}.apk
|
||||
retention-days: 30
|
||||
@@ -1,73 +0,0 @@
|
||||
name: Build and Upload Binaries
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.TEKTON_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p 222 100.79.174.108 >> ~/.ssh/known_hosts
|
||||
git clone ssh://git@100.79.174.108:222/danchie/tekton.git .
|
||||
git checkout ${{ github.ref_name }}
|
||||
|
||||
- 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: |
|
||||
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
|
||||
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
||||
|
||||
- name: Build Windows
|
||||
run: mkdir -p build && godot --headless --export-release "Windows Desktop" build/tekton.exe
|
||||
|
||||
- name: Build Linux
|
||||
run: godot --headless --export-release "Linux/X11" build/tekton.x86_64
|
||||
|
||||
- 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 Binary
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@build/tekton.exe" \
|
||||
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
|
||||
|
||||
- name: Upload Linux Binary
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@build/tekton.x86_64" \
|
||||
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
|
||||
@@ -1,137 +0,0 @@
|
||||
name: Test Suite
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, experimental, patch-release]
|
||||
pull_request:
|
||||
branches: [main, experimental, patch-release]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
name: Unit Tests (GUT)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
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 dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
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
|
||||
|
||||
integration-tests:
|
||||
name: Integration Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
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: |
|
||||
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
|
||||
unzip -q Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
||||
|
||||
- name: Export headless server for integration tests
|
||||
run: |
|
||||
godot --headless --export-release "Linux/X11" build/tekton_server.x86_64
|
||||
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
# Start server in background
|
||||
./build/tekton_server.x86_64 --headless --port 7777 &
|
||||
SERVER_PID=$!
|
||||
trap 'kill $SERVER_PID 2>/dev/null' EXIT
|
||||
sleep 5
|
||||
|
||||
# Run client tests against server
|
||||
godot --headless -d --path . -s addons/gut/gut_cmdln.gd --select=test_integration
|
||||
|
||||
lint:
|
||||
name: Code Style Check
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
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: Check GDScript syntax
|
||||
run: |
|
||||
godot --headless -s scripts/lint.gd
|
||||
|
||||
security-scan:
|
||||
name: Security Scan
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
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: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
scan-type: 'fs'
|
||||
scan-ref: '.'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
|
||||
- name: Upload Trivy results to GitHub Security
|
||||
uses: github/codeql-action/upload-sarif@v3
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
@@ -1,64 +0,0 @@
|
||||
name: Upload PCK to Gitea Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.TEKTON_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p 222 100.79.174.108 >> ~/.ssh/known_hosts
|
||||
git clone ssh://git@100.79.174.108:222/danchie/tekton.git .
|
||||
git checkout ${{ github.ref_name }}
|
||||
|
||||
- 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: Build PCK
|
||||
run: godot --headless -s tools/build_patch.gd
|
||||
|
||||
- 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 PCK to Release
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@patch.pck" \
|
||||
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
|
||||
|
||||
- name: Upload version.json to Release
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@assets/data/version.json" \
|
||||
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
|
||||
Reference in New Issue
Block a user