git: Try cross-compiling
This commit is contained in:
parent
c7c01c1f24
commit
211f775b9f
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -131,8 +131,13 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- suffix: "-NoGPU"
|
- suffix: "-NoGPU"
|
||||||
custom_glfw: true
|
custom_glfw: true
|
||||||
|
target: "x86_64-apple-macos11"
|
||||||
- suffix: ""
|
- suffix: ""
|
||||||
custom_glfw: false
|
custom_glfw: false
|
||||||
|
target: "x86_64-apple-macos11"
|
||||||
|
- suffix: "-ARM"
|
||||||
|
custom_glfw: false
|
||||||
|
target: "arm64-apple-macos11"
|
||||||
|
|
||||||
name: 🍎 macOS 11.0${{matrix.suffix}}
|
name: 🍎 macOS 11.0${{matrix.suffix}}
|
||||||
|
|
||||||
@ -207,13 +212,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
CC=$(brew --prefix gcc@12)/bin/gcc-12 \
|
CC=$(brew --prefix llvm)/bin/clang \
|
||||||
CXX=$(brew --prefix gcc@12)/bin/g++-12 \
|
CXX=$(brew --prefix llvm)/bin/clang++ \
|
||||||
OBJC=$(brew --prefix llvm)/bin/clang \
|
OBJC=$(brew --prefix llvm)/bin/clang \
|
||||||
OBJCXX=$(brew --prefix llvm)/bin/clang++ \
|
OBJCXX=$(brew --prefix llvm)/bin/clang++ \
|
||||||
PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig":"$(brew --prefix)/lib/pkgconfig" \
|
PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig":"$(brew --prefix)/lib/pkgconfig" \
|
||||||
cmake -G "Ninja" \
|
cmake -G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
|
||||||
|
-DCMAKE_C_FLAGS="-target ${{matrix.target}} \
|
||||||
|
-DCMAKE_CXX_FLAGS="-target ${{matrix.target}} \
|
||||||
-DCREATE_BUNDLE=ON \
|
-DCREATE_BUNDLE=ON \
|
||||||
-DCREATE_PACKAGE=ON \
|
-DCREATE_PACKAGE=ON \
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
Loading…
Reference in New Issue
Block a user