feature(github): add arm64 to workflow

This commit is contained in:
6arelyFuture 2023-06-22 14:13:11 +02:00
parent 6dda39ab91
commit 0a908c5a30
Signed by: Future
GPG Key ID: FA77F074E98D98A5
2 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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"