Skip to content

Lt release 4.3.2

Lt release 4.3.2 #4

Workflow file for this run

name: Build KTX Framework for iOS
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.1'
- name: Checkout repo
uses: actions/checkout@v4
- name: Create build directory
run: mkdir -p build
- name: Generate Xcode project
run: cmake -G Xcode -B build/ios -D CMAKE_SYSTEM_NAME=iOS > build/logs/cmake_generate.log 2>&1
- name: Build for iphoneos
run: cmake --build build/ios --config Release -- -sdk iphoneos > build/logs/build_iphoneos.log 2>&1
- name: Build for iphonesimulator
run: cmake --build build/ios --config Release -- -sdk iphonesimulator EXCLUDED_ARCHS=x86_64 > build/logs/build_iphonesimulator.log 2>&1
- name: Create XCFramework
run: |
xcodebuild -create-xcframework \
-framework build/ios/Release-iphoneos/ktx.framework \
-framework build/ios/Release-iphonesimulator/ktx.framework \
-output ktx.xcframework > build/logs/create_xcframework.log 2>&1
- uses: actions/upload-artifact@v4
with:
name: ktx.xcframework
path: ktx.xcframework
- uses: actions/upload-artifact@v4
with:
name: build_logs
path: build/logs/