Build for ARM64 in Mac.
This commit is contained in:
parent
4ab22d6f68
commit
e929ee7bf8
2 changed files with 19 additions and 0 deletions
13
.github/workflows/mac.yml
vendored
13
.github/workflows/mac.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue