Skip to content

Commit 05b6f51

Browse files
committed
Build all targets
1 parent 48de03a commit 05b6f51

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,14 @@ jobs:
9595
- name: Build
9696
if: matrix.build-mode == 'manual' && matrix.language == 'swift'
9797
env:
98-
scheme: EnergyMeter
9998
platform: ${{ 'iOS Simulator' }}
10099
run: |
101100
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
102101
device=$(xcrun xctrace list devices 2>&1 | grep -E 'iPhone.* \(.*\)' | grep -oE 'iPhone.* \([0-9.]+\)' | awk -F'[()]' '{ if ($2 >= 18.2) print $1 }' | head -1 | sed -e "s/ Simulator $//")
103102
if [ $scheme = default ]; then scheme=$(cat default); fi
104103
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
105104
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
106-
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
105+
xcodebuild build-for-testing -alltargets -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
107106
108107
- name: Perform CodeQL Analysis
109108
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)