mirror of
https://github.com/HarmonyHoney/ROTA.git
synced 2026-07-19 01:25:10 +00:00
linux: Update Godot Engine and Flatpak versions (#46)
* workflows: bump Flatpak image and action versions * workflows: Update Godot Engine to 3.6.2; download manually * workflows: correct Godot project path * workflows: run Godot from repo root for export Godot needs to run from the directory containing export_presets.cfg. Running from the export/ subdirectory caused Godot to fail to find export_presets.cfg even when --path pointed to the repo root. Running from the repo root with export/godot and --path=. fixes this; the ._sc_ self-contained marker is still placed next to the binary in export/.
This commit is contained in:
parent
de119d8daa
commit
e05330c3cf
2 changed files with 36 additions and 17 deletions
6
.github/workflows/flatpak.yml
vendored
6
.github/workflows/flatpak.yml
vendored
|
|
@ -13,11 +13,11 @@ jobs:
|
|||
flatpak:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-25.08
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||
- uses: actions/checkout@v7.0.0
|
||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.7
|
||||
with:
|
||||
bundle: rota.flatpak
|
||||
manifest-path: linux/net.hhoney.rota.yml
|
||||
|
|
|
|||
47
.github/workflows/godot.yml
vendored
47
.github/workflows/godot.yml
vendored
|
|
@ -7,36 +7,55 @@ on:
|
|||
- released
|
||||
|
||||
env:
|
||||
GODOT_VERSION: 3.6
|
||||
GODOT_VERSION: 3.6.2
|
||||
EXPORT_NAME: rota-ci
|
||||
|
||||
jobs:
|
||||
export:
|
||||
name: Export
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker.io/smks/godot-ci:3.6
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7.0.0
|
||||
|
||||
- name: Cache Godot Engine downloads
|
||||
id: cache-godot
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
lfs: true
|
||||
path: |
|
||||
export/godot
|
||||
export/editor_data/export_templates/${{ env.GODOT_VERSION }}.stable
|
||||
key: godot-${{ env.GODOT_VERSION }}
|
||||
|
||||
- name: Set up export templates
|
||||
- name: Download Godot Engine from GitHub release
|
||||
id: download
|
||||
if: steps.cache-godot.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
mkdir -v -p ~/.local/share/godot/templates/
|
||||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||
mkdir -p export && cd export
|
||||
|
||||
- name: Export
|
||||
# Download Godot Engine itself
|
||||
wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_linux_headless.64.zip && \
|
||||
unzip Godot_v${GODOT_VERSION}-stable_linux_headless.64.zip && \
|
||||
mv Godot_v${GODOT_VERSION}-stable_linux_headless.64 godot
|
||||
|
||||
# Download export templates
|
||||
mkdir -p editor_data/export_templates
|
||||
wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_export_templates.tpz && \
|
||||
unzip Godot_v${GODOT_VERSION}-stable_export_templates.tpz && \
|
||||
mv templates editor_data/export_templates/${GODOT_VERSION}.stable
|
||||
|
||||
- name: Export PCK file
|
||||
run: |
|
||||
mkdir --verbose --parents ./export/linux
|
||||
godot --no-window --path=./project.godot --export-pack "Linux/X11" ./export/linux/${EXPORT_NAME}.pck
|
||||
# Tell Godot Engine to be self-contained
|
||||
touch export/._sc_
|
||||
|
||||
export/godot --no-window --path=. --export-pack "Linux/X11" export/${EXPORT_NAME}.pck
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
with:
|
||||
name: ${{ env.EXPORT_NAME }}
|
||||
path: export/linux/${{ env.EXPORT_NAME }}.pck
|
||||
path: export/${{ env.EXPORT_NAME }}.pck
|
||||
|
||||
release:
|
||||
name: Release
|
||||
|
|
@ -45,7 +64,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v8.0.1
|
||||
with:
|
||||
name: ${{ env.EXPORT_NAME }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue