Skip to content

Commit

Permalink
fix: Attempt to create universal binary by providing architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Oct 24, 2023
1 parent d8644f6 commit a1556d6
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: build_mac
run: cmake --build build_mac --config MinSizeRel --target draco_unity

- name: configure_ios
- name: configure iOS
run: >
cmake . -G Xcode -B build_ios
-DCMAKE_BUILD_TYPE=MinSizeRel
Expand All @@ -65,10 +65,20 @@ jobs:
-DDRACO_UNITY_PLUGIN=ON
-DDRACO_GLTF_BITSTREAM=ON
-DDRACO_BACKWARDS_COMPATIBILITY=OFF
- name: build_ios
run: |
cmake --build build_ios --config MinSizeRel --target draco_unity
cmake --build build_ios --config MinSizeRel --target draco_unity -- -sdk iphonesimulator EXECUTABLE_SUFFIX=-simulator.a ONLY_ACTIVE_ARCH=NO
- name: build iOS
run: cmake --build build_ios --config MinSizeRel --target draco_unity
- name: build iOS Simulator
run: >
cmake
--build build_ios
--config MinSizeRel
--target draco_unity
--
-sdk iphonesimulator
-arch "arm64"
-arch "x86_64"
EXECUTABLE_SUFFIX=-simulator.a
ONLY_ACTIVE_ARCH=NO
- name: package Apple
run: |
Expand Down

0 comments on commit a1556d6

Please sign in to comment.