mirror of
https://github.com/alterware/iw4-validator.git
synced 2025-04-19 16:42:54 +00:00
feature(github): add arm64 to workflow
This commit is contained in:
parent
6dda39ab91
commit
0a908c5a30
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
|||||||
platform: x64
|
platform: x64
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files
|
- name: Check out files
|
||||||
uses: actions/checkout@v3.5.2
|
uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -72,6 +72,7 @@ jobs:
|
|||||||
- Release
|
- Release
|
||||||
arch:
|
arch:
|
||||||
- x64
|
- x64
|
||||||
|
- arm64
|
||||||
include:
|
include:
|
||||||
- configuration: Debug
|
- configuration: Debug
|
||||||
config: debug
|
config: debug
|
||||||
@ -79,12 +80,18 @@ jobs:
|
|||||||
config: release
|
config: release
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files
|
- name: Check out files
|
||||||
uses: actions/checkout@v3.5.2
|
uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
lfs: false
|
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
|
- name: Install Premake5
|
||||||
uses: abel0b/setup-premake@v2.2
|
uses: abel0b/setup-premake@v2.2
|
||||||
with:
|
with:
|
||||||
@ -100,6 +107,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pushd build
|
pushd build
|
||||||
make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
|
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
|
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
|
@ -9,7 +9,7 @@ configurations {"Debug", "Release"}
|
|||||||
if os.istarget("darwin") then
|
if os.istarget("darwin") then
|
||||||
platforms {"x64", "arm64"}
|
platforms {"x64", "arm64"}
|
||||||
else
|
else
|
||||||
platforms {"x86", "x64"}
|
platforms {"x86", "x64", "arm64"}
|
||||||
end
|
end
|
||||||
|
|
||||||
filter "platforms:x86"
|
filter "platforms:x86"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user