Skip to content

Commit

Permalink
Add support for arm64 on linux and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chippmann committed Oct 12, 2024
1 parent f252330 commit 3ed8802
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/assemble_export_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,26 @@ jobs:
shell: sh
run: mv godot.linuxbsd.template_release.x86_64.jvm.${{ inputs.build-version }} templates/linux_release.x86_64

- name: Download linux arm64 debug export template
uses: actions/download-artifact@v4
with:
name: export_template_debug_linux_arm64
path: "./"

- name: Move linux arm64 debug export template
shell: sh
run: mv godot.linuxbsd.template_debug.arm64.jvm.${{ inputs.build-version }} templates/linux_debug.arm64

- name: Download linux arm64 release export template
uses: actions/download-artifact@v4
with:
name: export_template_release_linux_arm64
path: "./"

- name: Move linux arm64 release export template
shell: sh
run: mv godot.linuxbsd.template_release.arm64.jvm.${{ inputs.build-version }} templates/linux_release.arm64

- name: Download windows x86_64 debug export template
uses: actions/download-artifact@v4
with:
Expand All @@ -85,6 +105,26 @@ jobs:
shell: sh
run: mv godot.windows.template_release.x86_64.jvm.${{ inputs.build-version }}.exe templates/windows_release_x86_64.exe

- name: Download windows arm64 debug export template
uses: actions/download-artifact@v4
with:
name: export_template_debug_windows_arm64
path: "./"

- name: Move windows arm64 debug export template
shell: sh
run: mv godot.windows.template_debug.arm64.jvm.${{ inputs.build-version }}.exe templates/windows_debug_arm64.exe

- name: Download windows arm64 release export template
uses: actions/download-artifact@v4
with:
name: export_template_release_windows_arm64
path: "./"

- name: Move windows arm64 release export template
shell: sh
run: mv godot.windows.template_release.arm64.jvm.${{ inputs.build-version }}.exe templates/windows_release_arm64.exe

- name: Download macos debug export template
uses: actions/download-artifact@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/assemble_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:
- name: Create editor zip debug
target: debug
arch: x86_64

- name: Create editor zip release
target: release
arch: arm64

- name: Create editor zip debug
target: debug
arch: arm64
steps:
- name: Download ${{ matrix.target }} editor
uses: actions/download-artifact@v4
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/assemble_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
- name: Create editor zip debug
target: debug
arch: x86_64

- name: Create editor zip release
target: release
arch: arm64

- name: Create editor zip debug
target: debug
arch: arm64
steps:
- name: Download ${{ matrix.target }} editor
uses: actions/download-artifact@v4
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,31 @@ jobs:
target: template_debug
sconsflags: ''

- name: Build editor release arm64 (target=editor)
cache-name: editor_release_linux_arm64
target: editor
sconsflags: arch=arm64

- name: Build editor debug (target=editor, debug_symbols=true )
cache-name: editor_debug_linux_arm64
target: editor
sconsflags: arch=arm64 debug_symbols=true

- name: Build editor dev (target=editor, dev_build=yes, debug_symbols=true )
cache-name: editor_dev_linux_arm64
target: editor
sconsflags: arch=arm64 dev_build=yes debug_symbols=true

- name: Build release template arm64
cache-name: export_template_release_linux_arm64
target: template_release
sconsflags: arch=arm64

- name: Build debug template arm64
cache-name: export_template_debug_linux_arm64
target: template_debug
sconsflags: arch=arm64

steps:
- name: Maximize build space
uses: AdityaGarg8/[email protected]
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,36 @@ jobs:
should-clean: false
sconsflags: ''

- name: Build editor release (target=editor)
cache-name: editor_release_windows_arm64
target: editor
should-clean: true
sconsflags: arch=arm64

- name: Build editor debug (target=editor, debug_symbols=true )
cache-name: editor_debug_windows_arm64
target: editor
should-clean: false
sconsflags: arch=arm64 debug_symbols=true

- name: Build editor dev (target=editor, dev_build=yes, debug_symbols=true )
cache-name: editor_dev_windows_arm64
target: editor
should-clean: false
sconsflags: arch=arm64 dev_build=yes debug_symbols=true

- name: Build release template
cache-name: export_template_release_windows_arm64
target: template_release
should-clean: true
sconsflags: arch=arm64

- name: Build debug template
cache-name: export_template_debug_windows_arm64
target: template_debug
should-clean: false
sconsflags: arch=arm64

steps:
- name: Clone Godot Engine
uses: actions/checkout@v4
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/deploy_godot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,38 @@ jobs:
strategy:
matrix:
include:
- platform: linuxbsd
- platform: linuxbsd (x86_64)
target: debug
arch: x86_64

- platform: linuxbsd
- platform: linuxbsd (x86_64)
target: release
arch: x86_64

- platform: windows
- platform: linuxbsd (arm64)
target: debug
arch: arm64

- platform: linuxbsd (arm64)
target: release
arch: arm64

- platform: windows (x86_64)
target: debug
arch: x86_64

- platform: windows
- platform: windows (x86_64)
target: release
arch: x86_64

- platform: windows (arm64)
target: debug
arch: arm64

- platform: windows (arm64)
target: release
arch: arm64

- platform: macos
target: debug
arch: universal
Expand Down

0 comments on commit 3ed8802

Please sign in to comment.