Skip to content

Commit

Permalink
Merge pull request #22 from V-Sekai/build-matrix
Browse files Browse the repository at this point in the history
Build ios too.
  • Loading branch information
fire authored Dec 20, 2024
2 parents 38734d3 + 142d22c commit b752ac4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:
fail-fast: false
matrix:
precision: [double]
platform: [macos]
platform: [macos, ios]
target: [editor, template_release, template_debug]
exclude:
- platform: ios
target: editor

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.platform }}-${{ matrix.target }}-${{ matrix.precision }}
Expand Down
20 changes: 20 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,26 @@ build-platform-target platform target precision="double":
dlink_enabled=yes \
debug_symbols=yes
;;
ios)
if [ "$(uname)" = "Darwin" ]; then
unset OSXCROSS_ROOT
else
export PATH=${OSXCROSS_ROOT}/target/bin/:$PATH
fi
scons platform=ios \
werror=no \
compiledb=yes \
precision={{precision}} \
target={{target}} \
test=yes \
vulkan=no \
arch=arm64 \
vulkan_sdk_path=$VULKAN_SDK_ROOT/MoltenVK/MoltenVK/static/MoltenVK.xcframework \
osxcross_sdk=darwin24 \
generate_bundle=yes \
debug_symbols=yes \
separate_debug_symbols=yes
;;
*)
echo "Unsupported platform: {{platform}}"
exit 1
Expand Down

0 comments on commit b752ac4

Please sign in to comment.