Build for ARM64 in Mac.

This commit is contained in:
Gonzalo Exequiel Pedone 2023-04-30 18:26:20 -03:00
parent 4ab22d6f68
commit e929ee7bf8
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF
2 changed files with 19 additions and 0 deletions

View file

@ -13,14 +13,27 @@ jobs:
matrix:
include:
- os: macos-13
architecture: x64
upload: 0
- os: macos-12
architecture: x64
upload: 0
- os: macos-11
architecture: x64
upload: 1
- os: macos-13
architecture: arm64
upload: 0
- os: macos-12
architecture: arm64
upload: 0
- os: macos-11
architecture: arm64
upload: 1
runs-on: ${{ matrix.os }}
env:
UPLOAD: ${{ matrix.upload }}
ARCHITECTURE: ${{ matrix.architecture }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies

View file

@ -25,6 +25,12 @@ if [ -z "${DISABLE_CCACHE}" ]; then
EXTRA_PARAMS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_OBJCXX_COMPILER_LAUNCHER=ccache"
fi
if [ "${ARCHITECTURE}" == arm64 ]; then
EXTRA_PARAMS="${EXTRA_PARAMS} -DCMAKE_OSX_ARCHITECTURES=arm64"
export CFLAGS="-arch arm64"
export CXXFLAGS="-arch arm64"
fi
INSTALL_PREFIX=${PWD}/package-data
mkdir -p build