Skip to content

Commit

Permalink
Update iOS CI to add WERROR support via Xcode (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Apr 5, 2024
1 parent ec9c398 commit 0aa995b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
-scheme OpenGraph-Package \
-configuration Debug \
-destination "platform=iOS" \
-derivedDataPath .build-debug \
-skipMacroValidation \
-skipPackagePluginValidation \
-derivedDataPath .build-debug
# Disable OTHER_SWIFT_FLAGS="-warnings-as-errors" due to remote dependency warning will be treated as error in xcodebuild
OTHER_SWIFT_FLAGS="-warnings-as-errors"
- name: Build and run tests in debug mode with coverage on iOS Simulator
run: |
xcodebuild test \
Expand All @@ -49,6 +49,7 @@ jobs:
-derivedDataPath .build-test-debug \
-skipPackagePluginValidation \
-skipMacroValidation
# OTHER_SWIFT_FLAGS="-warnings-as-errors" Conflicting options '-warnings-as-errors' and '-suppress-warnings'
profdata_file_path=$(find . -path "*.build-test-debug/Build/ProfileData*Coverage.profdata" -type f)
xcrun llvm-cov show \
-instr-profile=$profdata_file_path \
Expand Down

0 comments on commit 0aa995b

Please sign in to comment.