Skip to content

Commit

Permalink
feat: Added Apple Vision OS binary
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Jan 16, 2024
1 parent 8d7d514 commit d22d3a5
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,48 @@ jobs:
name: draco_apple
path: draco_apple

mac-beta:

runs-on: macos-13

steps:
- uses: actions/checkout@v3

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2.0-beta'

- name: Configure visionOS
run: >
cmake . -G Xcode -B build_visionos
-DCMAKE_BUILD_TYPE=MinSizeRel
-DCMAKE_SYSTEM_NAME=visionOS
-DDRACO_UNITY_PLUGIN=ON
-DDRACO_GLTF_BITSTREAM=ON
-DDRACO_BACKWARDS_COMPATIBILITY=OFF
- name: Build visionOS
run: cmake --build build_visionos --config MinSizeRel --target draco_unity
- name: Build visionOS Simulator
run: >
cmake
--build build_visionos
--config MinSizeRel
--target draco_unity
--
-sdk xrsimulator
EXECUTABLE_SUFFIX=-simulator.dylib
ONLY_ACTIVE_ARCH=NO
- name: Package Apple
run: |
mkdir -p draco_apple_beta/visionOS
mv build_visionos/MinSizeRel-xros/libdraco_unity.a draco_apple_beta/visionOS
mv build_visionos/MinSizeRel-xrsimulator/libdraco_unity-simulator.a draco_apple_beta/visionOS
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: draco_apple_beta
path: draco_apple_beta

windows:

Expand Down Expand Up @@ -445,6 +487,7 @@ jobs:
runs-on: ubuntu-22.04
needs:
- mac
- mac-beta
- windows
- linux
- linux_legacy
Expand All @@ -461,6 +504,7 @@ jobs:
run: |
mkdir draco
cp -r artifacts/draco_apple/* draco
cp -r artifacts/draco_apple_beta/* draco
cp -r artifacts/draco_win/* draco
cp -r artifacts/draco_linux/* draco
cp -r artifacts/draco_linux_legacy/* draco
Expand All @@ -483,6 +527,7 @@ jobs:
with:
name: |
draco_apple
draco_apple_beta
draco_win
draco_linux
draco_linux_legacy
Expand Down

0 comments on commit d22d3a5

Please sign in to comment.