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:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: macos-13
|
- os: macos-13
|
||||||
|
architecture: x64
|
||||||
upload: 0
|
upload: 0
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
|
architecture: x64
|
||||||
upload: 0
|
upload: 0
|
||||||
- os: macos-11
|
- 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
|
upload: 1
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
UPLOAD: ${{ matrix.upload }}
|
UPLOAD: ${{ matrix.upload }}
|
||||||
|
ARCHITECTURE: ${{ matrix.architecture }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- 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"
|
EXTRA_PARAMS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_OBJCXX_COMPILER_LAUNCHER=ccache"
|
||||||
fi
|
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
|
INSTALL_PREFIX=${PWD}/package-data
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
Loading…
Reference in a new issue