-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b494d8
commit 446e09b
Showing
3 changed files
with
162 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,82 +22,82 @@ jobs: | |
- abi: x86_64 | ||
sdk: iphoneos | ||
steps: | ||
- name: get-cmake | ||
uses: lukka/[email protected] | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
lfs: true | ||
- name: Build ${{matrix.abi}} | ||
run: | | ||
sh ios.sh build build-non-fat ${{matrix.sdk}} ${{matrix.abi}} | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: build | ||
if-no-files-found: error | ||
- name: get-cmake | ||
uses: lukka/[email protected] | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
lfs: true | ||
- name: Build ${{matrix.abi}} | ||
run: | | ||
sh ios.sh build build-non-fat ${{matrix.sdk}} ${{matrix.abi}} | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: build | ||
if-no-files-found: error | ||
install_and_test: | ||
runs-on: macos-latest | ||
timeout-minutes: 30 | ||
needs: build_non_fat | ||
steps: | ||
- name: get-cmake | ||
uses: lukka/[email protected] | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
lfs: true | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
- name: Run simulator | ||
run: | | ||
runtime=$(xcrun simctl list runtimes iOS -j | jq '.runtimes[].identifier' | tail -1) | ||
udid=$(xcrun simctl list devices iPhone available -j | jq '.devices['$runtime']|.[].udid' | tail -1) | ||
xcrun simctl bootstatus $(eval echo $udid) -b | ||
- name: Test | ||
run: | | ||
ctest --test-dir build/iphonesimulator-x86_64 -C Release | ||
- name: Archive artifacts (testsuite) | ||
if: ${{failure()}} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: testsuite | ||
path: ${{github.workspace}}/build/iphonesimulator-x86_64/ | ||
- name: Install fat files and XCFrameworks | ||
run: | | ||
sh ios.sh build install "$HOME/ios" | ||
- name: Archive artifacts (xcframework) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: xcframework | ||
path: ~/ios | ||
if-no-files-found: error | ||
- name: get-cmake | ||
uses: lukka/[email protected] | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
lfs: true | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
- name: Run simulator | ||
run: | | ||
runtime=$(xcrun simctl list runtimes iOS -j | jq '.runtimes[].identifier' | tail -1) | ||
udid=$(xcrun simctl list devices iPhone available -j | jq '.devices['$runtime']|.[].udid' | tail -1) | ||
xcrun simctl bootstatus $(eval echo $udid) -b | ||
- name: Test | ||
run: | | ||
ctest --test-dir build/iphonesimulator-x86_64 -C Release | ||
- name: Archive artifacts (testsuite) | ||
if: ${{failure()}} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: testsuite | ||
path: ${{github.workspace}}/build/iphonesimulator-x86_64/ | ||
- name: Install fat files and XCFrameworks | ||
run: | | ||
sh ios.sh build install "$HOME/ios" | ||
- name: Archive artifacts (xcframework) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: xcframework | ||
path: ~/ios | ||
if-no-files-found: error | ||
build-simply: | ||
runs-on: macos-latest | ||
timeout-minutes: 30 | ||
if: ${{false}} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
lfs: true | ||
- name: Configure | ||
run: sh ios.sh build configure | ||
- name: Build | ||
run: sh ios.sh build build | ||
- name: Install | ||
run: sh ios.sh build install $HOME/ios | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ios | ||
path: ~/ios/ | ||
- name: Run simulator | ||
run: | | ||
runtime=$(xcrun simctl list runtimes iOS -j | jq '.runtimes[].identifier' | tail -1) | ||
udid=$(xcrun simctl list devices iPhone available -j | jq '.devices['$runtime']|.[].udid' | tail -1) | ||
xcrun simctl bootstatus $(eval echo $udid) -b | ||
- name: Test | ||
run: | | ||
ctest --test-dir build/iphonesimulator-x86_64 -C Release | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
lfs: true | ||
- name: Configure | ||
run: sh ios.sh build configure | ||
- name: Build | ||
run: sh ios.sh build build | ||
- name: Install | ||
run: sh ios.sh build install $HOME/ios | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ios | ||
path: ~/ios/ | ||
- name: Run simulator | ||
run: | | ||
runtime=$(xcrun simctl list runtimes iOS -j | jq '.runtimes[].identifier' | tail -1) | ||
udid=$(xcrun simctl list devices iPhone available -j | jq '.devices['$runtime']|.[].udid' | tail -1) | ||
xcrun simctl bootstatus $(eval echo $udid) -b | ||
- name: Test | ||
run: | | ||
ctest --test-dir build/iphonesimulator-x86_64 -C Release |