Skip to content

Commit cdca923

Browse files
Trying again with manual build steps
1 parent 7b25738 commit cdca923

1 file changed

Lines changed: 22 additions & 23 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
matrix:
164164
include:
165165
- language: swift
166-
build-mode: manual
166+
build-mode: autobuild
167167

168168
steps:
169169
- name: Checkout react-native-sdk
@@ -218,11 +218,20 @@ jobs:
218218
env:
219219
NO_FLIPPER: 1
220220

221-
# - name: Build example for iOS
222-
# run: |
223-
# yarn add @iterable/react-native-sdk
224-
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
225-
# echo "${{ env.TURBO_CACHE_DIR }}"
221+
- name: Build example for iOS
222+
run: |
223+
yarn add @iterable/react-native-sdk
224+
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
225+
echo "${{ env.TURBO_CACHE_DIR }}"
226+
227+
xcodebuild clean build \
228+
-workspace ReactNativeSdkExample.xcworkspace \ # Replace with your workspace name
229+
-scheme ReactNativeSdkExample \ # Replace with your app's scheme name
230+
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ # Adjust simulator as needed
231+
-sdk iphonesimulator \
232+
CODE_SIGN_IDENTITY="" \
233+
CODE_SIGNING_REQUIRED=NO \
234+
CODE_SIGNING_ALLOWED=NO
226235
227236
# Initializes the CodeQL tools for scanning.
228237
- name: Initialize CodeQL
@@ -242,26 +251,16 @@ jobs:
242251
- if: matrix.build-mode == 'manual'
243252
shell: bash
244253
run: |
245-
yarn add @iterable/react-native-sdk
246-
247-
xcodebuild \
248-
-project ReactNativeSdkExample.xcodeproj \
249-
-scheme example \
250-
-sdk iphonesimulator \
251-
-destination "platform=iOS Simulator,name=iPhone 16 Pro" \
252-
-resultsBundlePath TestResults.xcresult \
253-
test | xcpretty
254-
254+
echo 'If you are using a "manual" build mode for one or more of the' \
255+
'languages you are analyzing, replace this with the commands to build' \
256+
'your code, for example:'
257+
echo ' make bootstrap'
258+
echo ' make release'
259+
exit 1
260+
# yarn add @iterable/react-native-sdk
255261
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
256262
# echo "${{ env.TURBO_CACHE_DIR }}"
257263

258-
# echo 'If you are using a "manual" build mode for one or more of the' \
259-
# 'languages you are analyzing, replace this with the commands to build' \
260-
# 'your code, for example:'
261-
# echo ' make bootstrap'
262-
# echo ' make release'
263-
# exit 1
264-
265264
- name: Perform CodeQL Analysis
266265
uses: github/codeql-action/analyze@v3
267266
with:

0 commit comments

Comments
 (0)