Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #35
Workflow file for this run
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
name: iOS | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build_non_fat: | |
runs-on: macos-latest | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 3 | |
matrix: | |
abi: [x86_64, arm64] | |
sdk: [iphoneos, iphonesimulator] | |
exclude: | |
- 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}} $BUILD_TYPE | |
- 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/[email protected] | |
- 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 $BUILD_TYPE | |
- 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" --config $BUILD_TYPE | |
- 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 --config $BUILD_TYPE | |
- name: Install | |
run: sh ios.sh build install $HOME/ios --config $BUILD_TYPE | |
- 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 $BUILD_TYPE |