diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8388feb..edcee05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: C/C++ CI -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] env: # Only used for the cache key. Increment version to force clean build. @@ -34,6 +34,32 @@ jobs: if-no-files-found: error path: | out/ + linux-arm: + runs-on: ubuntu-22.04-arm + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup Godot build cache + uses: ./godot-cpp/.github/actions/godot-cache + with: + cache-name: linux-arm + continue-on-error: true + - name: Build for Linux editor arm + run: | + pip3 install scons + scons platform=linux arch=aarch64 target=editor generate_bindings=yes + ldd addons/godot-git-plugin/linux/*.so + - name: Prepare artifact + run: | + mkdir out + mv addons out/ + - uses: actions/upload-artifact@v4 + with: + name: libgit_plugin.linux.aarch64.editor.so-${{ github.sha }} + if-no-files-found: error + path: | + out/ windows-x64: runs-on: windows-2022 diff --git a/addons/godot-git-plugin/git_plugin.gdextension b/addons/godot-git-plugin/git_plugin.gdextension index 62cf890..2fa27a7 100644 --- a/addons/godot-git-plugin/git_plugin.gdextension +++ b/addons/godot-git-plugin/git_plugin.gdextension @@ -6,5 +6,6 @@ compatibility_minimum = "4.2.0" [libraries] linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so" +linux.editor.arm64 = "linux/libgit_plugin.linux.editor.arm64.so" macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib" windows.editor.x86_64 = "windows/libgit_plugin.windows.editor.x86_64.dll"