Skip to content

Commit

Permalink
Create universal binaries only on CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
utokusa committed Jun 12, 2022
1 parent 999dc86 commit 429efd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ jobs:
-D CMAKE_MAKE_PROGRAM=ninja
-D CMAKE_C_COMPILER_LAUNCHER=ccache
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-D CMAKE_OSX_ARCHITECTURES=x86_64;arm64
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.20)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment target")
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "Build as universal binary")

# It cause fe_expected_compiler_job locally.
# So create universal binaries only on CI/CD.
# set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "Build as universal binary")

PROJECT(OS_251
LANGUAGES CXX C
Expand Down

0 comments on commit 429efd7

Please sign in to comment.