mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
Update ios.yml
This commit is contained in:
22
.github/workflows/ios.yml
vendored
22
.github/workflows/ios.yml
vendored
@@ -14,21 +14,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set Default Scheme
|
|
||||||
run: |
|
|
||||||
scheme_list=$(xcodebuild -list -json | tr -d "\n")
|
|
||||||
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
|
|
||||||
echo $default | cat >default
|
|
||||||
echo Using default scheme: $default
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
scheme: ${{ 'default' }}
|
scheme: ${{ 'default' }}
|
||||||
platform: ${{ 'iOS Simulator' }}
|
platform: ${{ 'iOS Simulator' }}
|
||||||
run: |
|
run: |
|
||||||
xcodebuild -allowProvisioningUpdates
|
xcodebuild \
|
||||||
# # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
|
-workspace NearFuture.xcodeproj
|
||||||
# device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
|
-scheme NearFuture \
|
||||||
# if [ $scheme = default ]; then scheme=$(cat default); fi
|
-sdk iphonesimulator \
|
||||||
# if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
|
-destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=18.5' \
|
||||||
# file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
|
clean build \
|
||||||
# xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
|
CODE_SIGN_IDENTITY="" \
|
||||||
|
CODE_SIGNING_ALLOWED=NO
|
||||||
|
|||||||
Reference in New Issue
Block a user