99jobs :
1010 ios_test :
1111 name : Execute tests on iOS
12- permissions :
13- contents : read
14- id-token : write
1512 strategy :
1613 fail-fast : false
1714 matrix :
@@ -36,63 +33,35 @@ jobs:
3633 uses : OpenSwiftUIProject/setup-xcode@v2
3734 with :
3835 xcode-version : ${{ matrix.xcode-version }}
39- - name : Set up mise
40- uses : jdx/mise-action@v2
41- with :
42- install : false
43- cache : false
44- - name : Set up Tuist cache
45- run : |
46- mise trust mise.toml
47- mise install
48- mise exec -- tuist auth login
49- mise exec -- tuist setup cache
50- shell : bash
5136 - name : Set up build environment
5237 run : Scripts/CI/darwin_setup_build.sh
5338 shell : bash
5439 - name : Build in debug mode on iOS
5540 run : |
56- result_bundle="${RUNNER_TEMP:-/tmp}/openattributegraph-ios-build-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT:-0}.xcresult"
57- rm -rf "$result_bundle"
58- trap 'rm -rf "$result_bundle"' EXIT
5941 # Swift 6.2.4 crashes while indexing C++ interop test targets.
60- mise exec -- tuist xcodebuild build \
42+ xcodebuild build \
6143 -workspace .swiftpm/xcode/package.xcworkspace \
6244 -scheme OpenAttributeGraph-Package \
6345 -configuration Debug \
6446 -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
6547 -derivedDataPath .build-debug \
66- -resultBundlePath "$result_bundle" \
6748 -skipMacroValidation \
6849 -skipPackagePluginValidation \
6950 COMPILER_INDEX_STORE_ENABLE=NO \
70- OTHER_SWIFT_FLAGS="-warnings-as-errors" \
71- COMPILATION_CACHE_ENABLE_CACHING=YES \
72- COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/OpenSwiftUIProject_openattributegraph.sock" \
73- COMPILATION_CACHE_ENABLE_PLUGIN=YES \
74- COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS=YES
51+ OTHER_SWIFT_FLAGS="-warnings-as-errors"
7552 - name : Build and run tests in debug mode with coverage on iOS Simulator
7653 run : |
77- result_bundle="${RUNNER_TEMP:-/tmp}/openattributegraph-ios-test-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT:-0}.xcresult"
78- rm -rf "$result_bundle"
79- trap 'rm -rf "$result_bundle"' EXIT
8054 # Swift 6.2.4 crashes while indexing C++ interop test targets.
81- mise exec -- tuist xcodebuild test \
55+ xcodebuild test \
8256 -workspace .swiftpm/xcode/package.xcworkspace \
8357 -scheme OpenAttributeGraph-Package \
8458 -configuration Debug \
8559 -destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
8660 -enableCodeCoverage=YES \
8761 -derivedDataPath .build-test-debug \
88- -resultBundlePath "$result_bundle" \
8962 -skipPackagePluginValidation \
9063 -skipMacroValidation \
91- COMPILER_INDEX_STORE_ENABLE=NO \
92- COMPILATION_CACHE_ENABLE_CACHING=YES \
93- COMPILATION_CACHE_REMOTE_SERVICE_PATH="$HOME/.local/state/tuist/OpenSwiftUIProject_openattributegraph.sock" \
94- COMPILATION_CACHE_ENABLE_PLUGIN=YES \
95- COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS=YES
64+ COMPILER_INDEX_STORE_ENABLE=NO
9665 # OTHER_SWIFT_FLAGS="-warnings-as-errors" Conflicting options '-warnings-as-errors' and '-suppress-warnings'
9766 - name : Generate iOS coverage report
9867 run : |
0 commit comments