abarichello / godot-ci

Docker image to export Godot Engine games. Templates for Gitlab CI and GitHub Actions to deploy to GitLab Pages/GitHub Pages/Itch.io.
https://hub.docker.com/r/barichello/godot-ci
MIT License
758 stars 133 forks source link

Can't successfully build on 3.3 #55

Closed Krutonium closed 3 years ago

Krutonium commented 3 years ago

During the build I am seeing

ERROR: _fs_changed: Cannot export project with preset 'Windows Desktop' due to configuration errors:
No export template found at the expected path:
/github/home/.local/share/godot/templates/3.3.stable.mono/windows_64_debug.exe
No export template found at the expected path:
/github/home/.local/share/godot/templates/3.3.stable.mono/windows_64_release.exe

   At: editor/editor_node.cpp:732.
ERROR: _fs_changed: Project export failed for preset 'Windows Desktop', the export template appears to be missing.
   At: editor/editor_node.cpp:755.

Which seems to indicate that there are export templates missing. Am I missing something?

   name: "godot-ci export"
on: push

env:
  GODOT_VERSION: 3.3
  EXPORT_NAME: combat-engineers

jobs:
  export-windows:
    name: Windows Export
    runs-on: ubuntu-latest
    container:
      image: barichello/godot-ci:mono-3.3
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          lfs: true
      - name: Windows Build
        run: |
          mkdir -v -p build
          godot -v --export "Windows Desktop" build/$EXPORT_NAME.exe
      - name: Upload Artifact
        uses: actions/upload-artifact@v1
        with:
          name: windows
          path: build

  export-linux:
    name: Linux Export
    runs-on: ubuntu-latest
    container:
      image: barichello/godot-ci:mono-3.3
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          lfs: true
      - name: Linux Build
        run: |
          mkdir -v -p build
          godot -v --export "Linux/X11" build/$EXPORT_NAME.x86_64.bin
      - name: Upload Artifact
        uses: actions/upload-artifact@v1
        with:
          name: linux
          path: build
Calinou commented 3 years ago

You need to move export templates around before you can export from GitHub Actions. See this workflow file for an example: https://github.com/Calinou/platshoot/blob/5841a6d2f87f1ae05cbe78cb68c2067ae2350c40/.github/workflows/godot-ci.yml#L19-L21