Skip to content

Update iOS CI to add WERROR support via Xcode #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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