From 0a908c5a307324bc7d44bd5bbc9d9cd0131934c5 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Thu, 22 Jun 2023 14:13:11 +0200 Subject: [PATCH] feature(github): add arm64 to workflow --- .github/workflows/build.yml | 15 +++++++++++++-- premake5.lua | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb1e751..fe6a0da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: platform: x64 steps: - name: Check out files - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v3.5.3 with: submodules: true fetch-depth: 0 @@ -72,6 +72,7 @@ jobs: - Release arch: - x64 + - arm64 include: - configuration: Debug config: debug @@ -79,12 +80,18 @@ jobs: config: release steps: - name: Check out files - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v3.5.3 with: submodules: true fetch-depth: 0 lfs: false + - name: Install dependencies (arm64) + if: matrix.arch == 'arm64' + run: | + sudo apt-get update + sudo apt-get -y install crossbuild-essential-arm64 + - name: Install Premake5 uses: abel0b/setup-premake@v2.2 with: @@ -100,6 +107,10 @@ jobs: run: | pushd build make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc) + if: matrix.arch == 'arm64' + env: + CC: aarch64-linux-gnu-gcc + CXX: aarch64-linux-gnu-g++ - name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries uses: actions/upload-artifact@v3.1.2 diff --git a/premake5.lua b/premake5.lua index 14fd451..49740e4 100644 --- a/premake5.lua +++ b/premake5.lua @@ -9,7 +9,7 @@ configurations {"Debug", "Release"} if os.istarget("darwin") then platforms {"x64", "arm64"} else - platforms {"x86", "x64"} + platforms {"x86", "x64", "arm64"} end filter "platforms:x86"