Godot auto build
This commit is contained in:
@@ -74,11 +74,11 @@ jobs:
|
||||
mkdir -p build/linux
|
||||
./godot --headless --export-release "Linux" build/linux/godot_number_factory.x86_64
|
||||
|
||||
# Step 6: Upload artifacts using action version safety features compatible with Gitea
|
||||
- name: Upload Linux Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-build
|
||||
path: build/linux/
|
||||
if-no-files-found: error
|
||||
## Step 6: Upload artifacts using action version safety features compatible with Gitea
|
||||
#- name: Upload Linux Build Artifact
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: linux-build
|
||||
# path: build/linux/
|
||||
# if-no-files-found: error
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
name: CI Built-in Cache Test
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test-cache:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 1. Ask Gitea to look for an existing cache match
|
||||
- name: Cache Mock Engine
|
||||
id: engine-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ./mock_downloads # The folder we want to preserve
|
||||
key: mock-engine-cache-v1 # The unique identifier for this cache
|
||||
|
||||
# 2. This step only runs if there was a CACHE MISS
|
||||
- name: Simulate Asset Download (On Cache Miss)
|
||||
if: steps.engine-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
echo "📥 CACHE MISS! Creating the folder and simulating a file download..."
|
||||
mkdir -p ./mock_downloads
|
||||
echo "Mock Godot Engine Data v4.7" > ./mock_downloads/dummy_engine.txt
|
||||
|
||||
# 3. This runs ALWAYS to verify the file is where it should be
|
||||
- name: Verify Workspace Output
|
||||
run: |
|
||||
echo "🔍 Verifying file presence..."
|
||||
if [ -f "./mock_downloads/dummy_engine.txt" ]; then
|
||||
echo "✅ File found! Content: $(cat ./mock_downloads/dummy_engine.txt)"
|
||||
else
|
||||
echo "❌ File not found!"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user