Skip to content

Commit

Permalink
Improve checks, enable all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed Oct 4, 2024
1 parent a3cd2fe commit 92ae833
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,31 @@ jobs:
fail-fast: false
matrix:
include:
# - platform: windows-x86_64
# os: windows-2019
# triplet: x64-windows-release
# - platform: linux-x86_64
# os: ubuntu-20.04
# manylinux: quay.io/pypa/manylinux2014_x86_64
# triplet: x64-linux-release
# - platform: linux-x86_64-noavx2
# os: ubuntu-20.04
# cmake_args: -DCOMPILER_SUPPORTS_AVX2=OFF
# triplet: x64-linux-release
# manylinux: quay.io/pypa/manylinux2014_x86_64
- platform: windows-x86_64
os: windows-2019
triplet: x64-windows-release
- platform: linux-x86_64
os: ubuntu-20.04
manylinux: quay.io/pypa/manylinux2014_x86_64
triplet: x64-linux-release
- platform: linux-x86_64-noavx2
os: ubuntu-20.04
cmake_args: -DCOMPILER_SUPPORTS_AVX2=OFF
triplet: x64-linux-release
manylinux: quay.io/pypa/manylinux2014_x86_64
- platform: linux-aarch64
os: ubuntu-24.04
cmake_args: -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++
triplet: arm64-linux-release
# - platform: macos-x86_64
# os: macos-12
# MACOSX_DEPLOYMENT_TARGET: 11
# triplet: x64-osx-release
# - platform: macos-arm64
# os: macos-12
# cmake_args: -DCMAKE_OSX_ARCHITECTURES=arm64
# MACOSX_DEPLOYMENT_TARGET: 11
# triplet: arm64-osx-release
- platform: macos-x86_64
os: macos-12
MACOSX_DEPLOYMENT_TARGET: 11
triplet: x64-osx-release
- platform: macos-arm64
os: macos-12
cmake_args: -DCMAKE_OSX_ARCHITECTURES=arm64
MACOSX_DEPLOYMENT_TARGET: 11
triplet: arm64-osx-release
runs-on: ${{ matrix.os }}
container: ${{ matrix.manylinux || '' }}
env:
Expand Down
8 changes: 6 additions & 2 deletions cmake/package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
endif()
else()
set(CPACK_SYSTEM_NAME "Linux")
if (DEFINED CACHE{CMAKE_SYSTEM_PROCESSOR} AND $CACHE{CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
set(CPACK_SYSTEM_PROCESSOR "arm64")
if (DEFINED CACHE{CMAKE_SYSTEM_PROCESSOR})
if ($CACHE{CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
set(CPACK_SYSTEM_PROCESSOR "arm64")
else()
set(CPACK_SYSTEM_PROCESSOR $CACHE{CMAKE_SYSTEM_PROCESSOR})
endif()
else()
set(CPACK_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
endif()
Expand Down

0 comments on commit 92ae833

Please sign in to comment.