Migrate to Godot 4 #1
+10
-20
@@ -36,13 +36,6 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload import cache
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: godot-import-cache
|
|
||||||
path: .godot
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# 2. Static analysis — gdlint from Scony's gdtoolkit (Python, no Godot).
|
# 2. Static analysis — gdlint from Scony's gdtoolkit (Python, no Godot).
|
||||||
# Runs in parallel with `validate`. Exports do NOT depend on this job,
|
# Runs in parallel with `validate`. Exports do NOT depend on this job,
|
||||||
@@ -58,8 +51,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Install gdtoolkit
|
- name: Install gdtoolkit
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --user "gdtoolkit==4.*"
|
python3 -m venv /tmp/gdlint-venv
|
||||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
/tmp/gdlint-venv/bin/pip install --quiet "gdtoolkit==4.*"
|
||||||
|
echo "/tmp/gdlint-venv/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Run gdlint
|
- name: Run gdlint
|
||||||
run: gdlint scripts db scenes
|
run: gdlint scripts db scenes
|
||||||
@@ -97,11 +91,8 @@ jobs:
|
|||||||
version: ${{ env.GODOT_VERSION }}
|
version: ${{ env.GODOT_VERSION }}
|
||||||
templates: "true"
|
templates: "true"
|
||||||
|
|
||||||
- name: Restore import cache
|
- name: Import project
|
||||||
uses: actions/download-artifact@v3
|
run: godot --headless --import || true
|
||||||
with:
|
|
||||||
name: godot-import-cache
|
|
||||||
path: .godot
|
|
||||||
|
|
||||||
- name: Prepare output dir
|
- name: Prepare output dir
|
||||||
run: mkdir -p "${{ matrix.artifact_path }}"
|
run: mkdir -p "${{ matrix.artifact_path }}"
|
||||||
@@ -149,7 +140,9 @@ jobs:
|
|||||||
wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O /tmp/cmdline.zip
|
wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O /tmp/cmdline.zip
|
||||||
unzip -q /tmp/cmdline.zip -d "$ANDROID_HOME/cmdline-tools"
|
unzip -q /tmp/cmdline.zip -d "$ANDROID_HOME/cmdline-tools"
|
||||||
mv "$ANDROID_HOME/cmdline-tools/cmdline-tools" "$ANDROID_HOME/cmdline-tools/latest"
|
mv "$ANDROID_HOME/cmdline-tools/cmdline-tools" "$ANDROID_HOME/cmdline-tools/latest"
|
||||||
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses >/dev/null
|
# `yes |` returns 141 (SIGPIPE) under `set -o pipefail` once sdkmanager
|
||||||
|
# closes its stdin — feed a finite stream of "y" answers instead.
|
||||||
|
printf 'y\n%.0s' {1..50} | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses >/dev/null
|
||||||
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" \
|
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" \
|
||||||
"platform-tools" "platforms;android-34" "build-tools;34.0.0" >/dev/null
|
"platform-tools" "platforms;android-34" "build-tools;34.0.0" >/dev/null
|
||||||
|
|
||||||
@@ -179,11 +172,8 @@ jobs:
|
|||||||
export/android/debug_keystore_pass = "android"
|
export/android/debug_keystore_pass = "android"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Restore import cache
|
- name: Import project
|
||||||
uses: actions/download-artifact@v3
|
run: godot --headless --import || true
|
||||||
with:
|
|
||||||
name: godot-import-cache
|
|
||||||
path: .godot
|
|
||||||
|
|
||||||
- name: Prepare output dir
|
- name: Prepare output dir
|
||||||
run: mkdir -p releases/android
|
run: mkdir -p releases/android
|
||||||
|
|||||||
Reference in New Issue
Block a user