Home

Awesome

godot builds

version aur <a href='https://ko-fi.com/bendn' title='Buy me a coffee' target='_blank'><img height='28' src='https://ko-fi.com/img/githubbutton_sm.svg' alt='Buy me a coffee'> </a>

Creates two packages.

How to use

For a full example, see this template.

<details open> <summary>With helpers (recomended)</summary>
build-windows:
  runs-on: ubuntu-latest
  container:
    image: ghcr.io/bend-n/godot-2d:4.0
  name: Build windows
  steps:
    - name: Build (Windows)
      uses: bend-n/godot-actions/.github/actions/export-windows@main
      env:
        NAME: ${{ github.event.repository.name }}
</details> <details> <summary>Manually</summary>

Warning This method has not been tested.

build-windows:
  runs-on: ubuntu-latest
  container:
    image: ghcr.io/bend-n/godot-2d:4.0
  name: Build windows
  steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Setup godot
      run: |
        RELEASE=stable; GODOT_VERSION=4.0.rc;
        mkdir -v -p ~/.local/share/godot/templates
        mv /root/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} ~/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE}

    - name: Build
      run: |
        mkdir -p build/windows
        godot --export Windows "./build/windows/${GAME_NAME}.exe"
      env:
        GAME_NAME: ${{ github.event.repository.name }}

    - name: Upload
      uses: actions/upload-artifact@v3
      with:
        name: windows
        path: build/windows
</details>