From dc9581bbe21d3f66bc0d9d2b5d5badc93f9a851b Mon Sep 17 00:00:00 2001 From: Daniel Sabel Date: Tue, 3 Sep 2024 10:50:45 +0200 Subject: [PATCH 1/6] Create release.yml --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5b81812 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: "Build" + +on: + workflow_dispatch: + branches: [main] + +jobs: + build_ios: + runs-on: macos-latest + steps: + - name: check Xcode version + run: /usr/bin/xcodebuild -version + - 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: ../LiteHtmlMaui/Platforms/iOS/NativeLibs/*.a + From 4b5c5e497497c8ad6e637a23d854814bf72fc0cd Mon Sep 17 00:00:00 2001 From: Daniel Sabel Date: Tue, 3 Sep 2024 10:56:04 +0200 Subject: [PATCH 2/6] Update release.yml --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b81812..79d7991 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,13 @@ name: "Build" on: - workflow_dispatch: - branches: [main] - + pull_request: + branches: + - main + push: + branches: + - "ci-test" + jobs: build_ios: runs-on: macos-latest From 7991a698d7f27271cdd711c6ea128593240bb70e Mon Sep 17 00:00:00 2001 From: Daniel Sabel Date: Tue, 3 Sep 2024 11:02:30 +0200 Subject: [PATCH 3/6] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79d7991..8925284 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,5 +26,5 @@ jobs: # Artifact name name: ioslib # A file, directory or wildcard pattern that describes what to upload - path: ../LiteHtmlMaui/Platforms/iOS/NativeLibs/*.a + path: ${GITHUB_WORKSPACE}/LiteHtmlMaui/Platforms/iOS/NativeLibs/*.a From 40cd8b5e7974a296a5006914a49d8212f7ada276 Mon Sep 17 00:00:00 2001 From: Daniel Sabel Date: Tue, 3 Sep 2024 11:07:54 +0200 Subject: [PATCH 4/6] Update release.yml --- .github/workflows/release.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8925284..4401921 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,17 +14,19 @@ jobs: steps: - name: check Xcode version run: /usr/bin/xcodebuild -version - - 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}/LiteHtmlMaui/Platforms/iOS/NativeLibs/*.a + - 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}/LiteHtmlMaui/Platforms/iOS/NativeLibs/*.a From 79ca04f3b69bc2cc7bcc3b7a1ca5d0c20896dff2 Mon Sep 17 00:00:00 2001 From: Daniel Sabel Date: Tue, 3 Sep 2024 11:09:52 +0200 Subject: [PATCH 5/6] Update release.yml --- .github/workflows/release.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4401921..7681df5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,17 +16,17 @@ jobs: 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}/LiteHtmlMaui/Platforms/iOS/NativeLibs/*.a + - 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 From d5d426306bbac3e827ed999ea93694e5965a9b5d Mon Sep 17 00:00:00 2001 From: Daniel Sabel Date: Tue, 3 Sep 2024 11:16:49 +0200 Subject: [PATCH 6/6] Update build_ios.sh --- litehtml-maui-native/build_ios.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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