Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-latest, ubuntu-24.04-arm]
include:
- os: windows-latest
triplet: x64-windows-static-md
Expand All @@ -21,6 +21,11 @@ jobs:
name: x64-linux
target: all
release_dir: "" # makefile single config won't have subfolder
- os: ubuntu-24.04-arm
triplet: arm64-linux
name: aarch64-linux
target: all
release_dir: "" # makefile single config won't have subfolder
env:
# Indicates the CMake build directory where project files and binaries are being produced.
CMAKE_BUILD_DIR: ${{ github.workspace }}/build
Expand Down Expand Up @@ -88,7 +93,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-latest, ubuntu-24.04-arm]
include:
- os: windows-latest
triplet: x64-windows-static-md
Expand All @@ -98,6 +103,10 @@ jobs:
triplet: x64-linux
name: x64-linux
target: all
- os: ubuntu-24.04-arm
triplet: arm64-linux
name: aarch64-linux
target: all
steps:
- name: Download build artifact
uses: actions/download-artifact@v8
Expand Down
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ endif()
if(WIN32)
set(PLATFORM_NAME "win")
elseif(UNIX AND NOT APPLE)
set(PLATFORM_NAME "linux")
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set(PLATFORM_NAME "linuxarm")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(PLATFORM_NAME "linux")
else()
message(FATAL_ERROR "Unsupported CPU architecture")
endif()
elseif(APPLE)
set(PLATFORM_NAME "osx")
endif()
Expand Down
Loading