From 3cce7aa0a60e0f8772ec5e88ad281600a1292d3d Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 30 Jul 2024 14:16:01 +0200 Subject: [PATCH 1/3] GHA: Add arm64 Linux builds --- .github/workflows/linux.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 252269a..67bfc34 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -45,6 +45,8 @@ jobs: fail-fast: false matrix: opts: + # * Standard x86_64 + - name: Editor (x86_64, release) target: editor arch: x86_64 @@ -63,6 +65,8 @@ jobs: dotnet: false should-build: ${{ !inputs.test-build }} + # * Standard x86_32 + # - name: Editor (x86_32, release) # target: editor # arch: x86_32 @@ -81,6 +85,28 @@ jobs: dotnet: false should-build: ${{ !inputs.test-build }} + # * Standard arm64 + + - name: Editor (arm64, release) + target: editor + arch: arm64 + dotnet: false + should-build: ${{ !inputs.test-build }} + + - name: Template (arm64, release) + target: template_release + arch: arm64 + dotnet: false + should-build: ${{ !inputs.test-build }} + + - name: Template (arm64, debug) + target: template_debug + arch: arm64 + dotnet: false + should-build: ${{ !inputs.test-build }} + + # * .NET x86_64 + - name: Editor .NET (x86_64, release) target: editor arch: x86_64 @@ -99,6 +125,8 @@ jobs: dotnet: true should-build: ${{ !inputs.test-build }} + # * .NET x86_32 + # - name: Editor .NET (x86_32, release) # target: editor # arch: x86_32 @@ -117,6 +145,26 @@ jobs: dotnet: true should-build: ${{ !inputs.test-build }} + # * .NET arm64 + + - name: Editor .NET (arm64, release) + target: editor + arch: arm64 + dotnet: true + should-build: ${{ !inputs.test-build }} + + - name: Template .NET (arm64, release) + target: template_release + arch: arm64 + dotnet: true + should-build: ${{ !inputs.test-build }} + + - name: Template .NET (arm64, debug) + target: template_debug + arch: arm64 + dotnet: true + should-build: ${{ !inputs.test-build }} + exclude: - { opts: { should-build: false } } From 85685720929d346b8a308a90b6c31a602321267f Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 30 Jul 2024 14:20:46 +0200 Subject: [PATCH 2/3] GHA: Add Windows ARM64 builds --- .github/workflows/windows.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 195bc8a..8bdb12c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -46,6 +46,8 @@ jobs: fail-fast: false matrix: opts: + # * Standard x86_64 + - name: Editor (x86_64, release) target: editor arch: x86_64 @@ -64,6 +66,8 @@ jobs: dotnet: false should-build: ${{ !inputs.test-build }} + # * Standard x86_32 + # - name: Editor (x86_32, release) # target: editor # arch: x86_32 @@ -82,6 +86,28 @@ jobs: dotnet: false should-build: ${{ !inputs.test-build }} + # * Standard arm64 + + # - name: Editor (arm64, release) + # target: editor + # arch: arm64 + # dotnet: false + # should-build: ${{ !inputs.test-build }} + + - name: Template (arm64, release) + target: template_release + arch: arm64 + dotnet: false + should-build: ${{ !inputs.test-build }} + + - name: Template (arm64, debug) + target: template_debug + arch: arm64 + dotnet: false + should-build: ${{ !inputs.test-build }} + + # * .NET x86_64 + - name: Editor .NET (x86_64, release) target: editor arch: x86_64 @@ -100,6 +126,8 @@ jobs: dotnet: true should-build: ${{ !inputs.test-build }} + # * .NET x86_32 + # - name: Editor .NET (x86_32, release) # target: editor # arch: x86_32 @@ -118,6 +146,26 @@ jobs: dotnet: true should-build: ${{ !inputs.test-build }} + # * .NET arm64 + + # - name: Editor (arm64, release) + # target: editor + # arch: arm64 + # dotnet: true + # should-build: ${{ !inputs.test-build }} + + - name: Template (arm64, release) + target: template_release + arch: arm64 + dotnet: true + should-build: ${{ !inputs.test-build }} + + - name: Template (arm64, debug) + target: template_debug + arch: arm64 + dotnet: true + should-build: ${{ !inputs.test-build }} + exclude: - { opts: { should-build: false } } From e788350363d8a57de95fd05b7c7de7458e5c30e0 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 30 Jul 2024 14:50:29 +0200 Subject: [PATCH 3/3] GHA: Add Linux ARM toolchain --- .github/actions/setup-linux-toolchain/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/setup-linux-toolchain/action.yml b/.github/actions/setup-linux-toolchain/action.yml index 3811b27..136fecb 100644 --- a/.github/actions/setup-linux-toolchain/action.yml +++ b/.github/actions/setup-linux-toolchain/action.yml @@ -15,6 +15,9 @@ runs: TOOLCHAIN_64_SHA=16c8302fcb676c1f0fb9df73d6cff250ba1f4286 TOOLCHAIN_32_URL=https://github.com/godotengine/buildroot/releases/download/godot-2020.11.x-2/i686-godot-linux-gnu_sdk-buildroot.tar.bz2 TOOLCHAIN_32_SHA=6171652abc54ef219e5187bc53660ee4e2f796f4 + TOOLCHAIN_ARM64_URL=https://github.com/godotengine/buildroot/releases/download/godot-2020.11.x-2/arm-godot-linux-gnueabihf_sdk-buildroot.tar.bz2 + TOOLCHAIN_ARM64_SHA=72fd02826dfbcf2ad679d5fda0a4e6882a548fbd + # ! Export variables: if [[ "${{ inputs.arch }}" == "x86_64" ]]; then echo "TOOLCHAIN_URL=${TOOLCHAIN_64_URL}" >> "$GITHUB_ENV" @@ -22,6 +25,9 @@ runs: elif [[ "${{ inputs.arch }}" == "x86_32" ]]; then echo "TOOLCHAIN_URL=${TOOLCHAIN_32_URL}" >> "$GITHUB_ENV" echo "TOOLCHAIN_SHA=${TOOLCHAIN_32_SHA}" >> "$GITHUB_ENV" + elif [[ "${{ inputs.arch }}" == "arm64" ]]; then + echo "TOOLCHAIN_URL=${TOOLCHAIN_ARM64_URL}" >> "$GITHUB_ENV" + echo "TOOLCHAIN_SHA=${TOOLCHAIN_ARM64_SHA}" >> "$GITHUB_ENV" fi - name: Cache buildroot