Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Sep 15, 2023
1 parent 77ac7cf commit 8bd73b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- os: macos-latest
build_args: release ios
build_target: ios
artifact_name: build/Release/ios/libveldrid-spirv.xcframework
artifact_name: build/Release/ios/veldrid-spirv.xcframework.zip
name: ${{ matrix.build_target }} Native Build

steps:
Expand Down Expand Up @@ -71,6 +71,10 @@ jobs:
fi
shell: bash

- name: Compress Framework For Upload
if: ${{ matrix.build_target == 'ios' }}
run: zip -r ${{ matrix.artifact_name }} build/Release/ios/veldrid-spirv.xcframework

# We can only run per-platform tests on 64-bit architectures
# https://github.com/actions/setup-dotnet/issues/72
- name: Install .NET
Expand Down Expand Up @@ -151,6 +155,14 @@ jobs:
name: ios
path: build/Release/ios

- name: Uncompress ios archive
uses: montudor/action-zip@v1
with:
args: unzip -qq build/Release/ios/veldrid-spirv.xcframework.zip -d build/Release/ios/veldrid-spirv.xcframework

- name: List
run: ls; ls ./build; ls ./build/Release; ls ./build/Release/ios; ls ./build/Release/ios/veldrid-spirv.xcframework

- name: Install .NET
uses: actions/setup-dotnet@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion build-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if [[ $_OSDir == "ios" ]]; then

popd

xcodebuild -create-xcframework -framework ./device/Release-iphoneos/veldrid-spirv.framework -framework ./simulator/Release-iphonesimulator/veldrid-spirv.framework -output ./veldrid-spirv.xcframework
xcodebuild -create-xcframework -framework ./device-build/Release-iphoneos/veldrid-spirv.framework -framework ./simulator-build/Release-iphonesimulator/veldrid-spirv.framework -output ./veldrid-spirv.xcframework
else
cmake ../../.. -DCMAKE_BUILD_TYPE=$_CMakeBuildType $_CMakeGenerator $_CMakeEnableBitcode -DPYTHON_EXECUTABLE=$_PythonExePath -DCMAKE_OSX_ARCHITECTURES="$_CMakeOsxArchitectures"
cmake --build . --target $_CMakeBuildTarget $_CMakeExtraBuildArgs
Expand Down

0 comments on commit 8bd73b1

Please sign in to comment.