From abe9a264602b5b34223b0b6d79603279bb74950e Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 31 Jul 2024 12:19:44 +0200 Subject: [PATCH] GHA: Add Linux ARM32 template builds --- .../actions/setup-linux-toolchain/action.yml | 5 ++++ .github/workflows/linux.yml | 28 +++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/.github/actions/setup-linux-toolchain/action.yml b/.github/actions/setup-linux-toolchain/action.yml index 936414f..d614267 100644 --- a/.github/actions/setup-linux-toolchain/action.yml +++ b/.github/actions/setup-linux-toolchain/action.yml @@ -17,6 +17,8 @@ runs: TOOLCHAIN_32_SHA=6171652abc54ef219e5187bc53660ee4e2f796f4 TOOLCHAIN_ARM64_URL=https://github.com/godotengine/buildroot/releases/download/godot-2023.08.x-3/aarch64-godot-linux-gnu_sdk-buildroot.tar.bz2 TOOLCHAIN_ARM64_SHA=73bed3d26b92c8b9a93c0ceb6bcce8fe567d1764 + TOOLCHAIN_ARM32_URL=https://github.com/godotengine/buildroot/releases/download/godot-2023.08.x-3/arm-godot-linux-gnueabihf_sdk-buildroot.tar.bz2 + TOOLCHAIN_ARM32_SHA=aa5853fd73faec3837c6127649471275d7e61cb2 # ! Export variables: if [[ "${{ inputs.arch }}" == "x86_64" ]]; then @@ -28,6 +30,9 @@ runs: elif [[ "${{ inputs.arch }}" == "arm64" ]]; then echo "TOOLCHAIN_URL=${TOOLCHAIN_ARM64_URL}" >> "$GITHUB_ENV" echo "TOOLCHAIN_SHA=${TOOLCHAIN_ARM64_SHA}" >> "$GITHUB_ENV" + elif [[ "${{ inputs.arch }}" == "arm32" ]]; then + echo "TOOLCHAIN_URL=${TOOLCHAIN_ARM32_URL}" >> "$GITHUB_ENV" + echo "TOOLCHAIN_SHA=${TOOLCHAIN_ARM32_SHA}" >> "$GITHUB_ENV" fi - name: Cache buildroot diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index ef48347..63b281e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -105,6 +105,20 @@ jobs: dotnet: false should-build: ${{ !inputs.test-build }} + # * Standard arm32 + + - name: Template (arm32, release) + target: template_release + arch: arm32 + dotnet: false + should-build: ${{ !inputs.test-build }} + + - name: Template (arm32, debug) + target: template_debug + arch: arm32 + dotnet: false + should-build: ${{ !inputs.test-build }} + # * .NET x86_64 - name: Editor .NET (x86_64, release) @@ -167,6 +181,20 @@ jobs: dotnet: true should-build: ${{ !inputs.test-build }} + # * .NET arm32 + + - name: Template .NET (arm32, release) + target: template_release + arch: arm32 + dotnet: true + should-build: ${{ !inputs.test-build }} + + - name: Template .NET (arm32, debug) + target: template_debug + arch: arm32 + dotnet: true + should-build: ${{ !inputs.test-build }} + exclude: - { opts: { should-build: false } }