diff --git a/.github/workflows/create-nuget.yml b/.github/workflows/create-nuget.yml index 67b82dbf6..77eda2e64 100644 --- a/.github/workflows/create-nuget.yml +++ b/.github/workflows/create-nuget.yml @@ -23,28 +23,32 @@ jobs: with: dotnet-version: '9.x' - - name: Build MBProgressHUD for simulator + + - name: Build MBProgressHUD iphonesimulator Framework run: | xcodebuild -project ${{ env.SRC_FOLDER }}/${{ env.PROJ_NAME }} \ - -target "MBProgressHUD Static Library" \ + -target "MBProgressHUD Framework" \ -sdk iphonesimulator${{ env.SDK }} \ - IPHONEOS_DEPLOYMENT_TARGET=12.0 \ - EXCLUDED_ARCHS="arm64" - - name: Build MBProgressHUD for device + - name: Build MBProgressHUD iphonesimulator Framework run: | xcodebuild -project ${{ env.SRC_FOLDER }}/${{ env.PROJ_NAME }} \ - -target "MBProgressHUD Static Library" \ + -target "MBProgressHUD Framework" \ -sdk iphoneos${{ env.SDK }} \ - IPHONEOS_DEPLOYMENT_TARGET=12.0 - - - name: Create universal lib with lipo in dotnet-binding + + - name: Build xcframework run: | - lipo -create \ - ${{ env.SRC_FOLDER }}/build/Release-iphoneos/libMBProgressHUD.a \ - ${{ env.SRC_FOLDER }}/build/Release-iphonesimulator/libMBProgressHUD.a \ - -output ./dotnet-binding/libMBProgressHUD.a - lipo -info ./dotnet-binding/libMBProgressHUD.a + xcodebuild -create-xcframework \ + -framework "${{ env.SRC_FOLDER }}/build/Release-iphonesimulator/MBProgressHUD.framework" \ + -framework "${{ env.SRC_FOLDER }}/build/Release-iphoneos/MBProgressHUD.framework" \ + -output ./dotnet-binding/MBProgressHUD.xcframework + + - name: Upload .xcframework as artifact + uses: actions/upload-artifact@v4.6.2 + with: + name: xcframework + compression-level: '1' + path: ./dotnet-binding/MBProgressHUD.xcframework - name: restore workload working-directory: ./dotnet-binding @@ -61,6 +65,6 @@ jobs: - name: Upload .nupkg as artifact uses: actions/upload-artifact@v4.6.2 with: - name: nuget-package + name: MBProgressHUD-nuget-package compression-level: '0' - path: /Users/runner/work/MBProgressHUD-dotnet/MBProgressHUD-dotnet/dotnet-binding/bin/Release/*.nupkg + path: ${{ env.SRC_FOLDER }}/dotnet-binding/bin/Release/*.nupkg diff --git a/dotnet-binding/MBProgressHUD-dotnet.csproj b/dotnet-binding/MBProgressHUD-dotnet.csproj index edd6cb378..bbd9d5ba6 100644 --- a/dotnet-binding/MBProgressHUD-dotnet.csproj +++ b/dotnet-binding/MBProgressHUD-dotnet.csproj @@ -8,7 +8,7 @@ com.jonathanantoine.MBProgressHUD - 1.0.0.0 + 1.0.0.1 Jonathan Antoine MBProgressHUD for dotnet https://github.com/jonathanantoine/MBProgressHUD-dotnet @@ -25,8 +25,8 @@ - - Static + + Framework Foundation ImageIO CoreGraphics