diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7681df5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: "Build" + +on: + pull_request: + branches: + - main + push: + branches: + - "ci-test" + +jobs: + build_ios: + runs-on: macos-latest + steps: + - name: check Xcode version + run: /usr/bin/xcodebuild -version + - name: print env + run: echo ${GITHUB_WORKSPACE} + - name: checkout repository + uses: actions/checkout@v3 + - name: build iOS + run: | + cd litehtml-maui-native + ./build_ios.sh + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.2.1-node20 + with: + # Artifact name + name: ioslib + # A file, directory or wildcard pattern that describes what to upload + path: ${GITHUB_WORKSPACE}/out/ios/lib/*.a + diff --git a/litehtml-maui-native/build_ios.sh b/litehtml-maui-native/build_ios.sh index 5037dce..44aa549 100755 --- a/litehtml-maui-native/build_ios.sh +++ b/litehtml-maui-native/build_ios.sh @@ -11,7 +11,7 @@ #cmake --build ../out/_buildios --config Release --target install -- -UseModernBuildSystem=NO -cmake -S. -G Xcode -B../out/_buildios -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DPLATFORM=OS64COMBINED -DCMAKE_INSTALL_PREFIX=`pwd`/../out/ios -DBUILD_TESTING=OFF +cmake -S. -G Xcode -B../out/_buildios -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DPLATFORM=OS64COMBINED -DCMAKE_INSTALL_PREFIX=`pwd`/../out/ios -DBUILD_TESTING=OFF -DDEPLOYMENT_TARGET=13.0 cmake --build ../out/_buildios --config Release cmake --install ../out/_buildios --config Release