Skip to content

Commit 730d421

Browse files
putting the build step between init and analyze
1 parent e5cfb61 commit 730d421

1 file changed

Lines changed: 20 additions & 36 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 20 additions & 36 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
@@ -221,32 +221,6 @@ jobs:
221221
env:
222222
NO_FLIPPER: 1
223223

224-
# - name: Build example for iOS
225-
# run: |
226-
# cd example/ios
227-
# xcodebuild -list
228-
#
229-
# xcodebuild clean build \
230-
# -project ReactNativeSdkExample.xcodeproj \
231-
# -scheme ReactNativeSdkExample \
232-
# -sdk iphoneos \
233-
# CODE_SIGN_IDENTITY="" \
234-
# CODE_SIGNING_REQUIRED=NO \
235-
# CODE_SIGNING_ALLOWED=NO \
236-
# BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
237-
# APPLICATION_EXTENSION_API_ONLY=YES \
238-
# IPHONEOS_DEVELOPMENT_TARGET=13.0
239-
# continue-on-error: true
240-
241-
# ARCHS=arm64
242-
243-
# -sdk iphoneos \
244-
# SKIP_INSTALL=NO \
245-
246-
# yarn add @iterable/react-native-sdk
247-
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
248-
# echo "${{ env.TURBO_CACHE_DIR }}"
249-
250224
# Initializes the CodeQL tools for scanning.
251225
- name: Initialize CodeQL
252226
uses: github/codeql-action/init@v3
@@ -264,9 +238,20 @@ jobs:
264238

265239
- if: matrix.build-mode == 'manual'
266240
shell: bash
267-
run:
241+
run: |
242+
echo 'If you are using a "manual" build mode for one or more of the' \
243+
'languages you are analyzing, replace this with the commands to build' \
244+
'your code, for example:'
245+
echo ' make bootstrap'
246+
echo ' make release'
247+
exit 1
248+
# yarn add @iterable/react-native-sdk
249+
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
250+
# echo "${{ env.TURBO_CACHE_DIR }}"
251+
252+
- name: Build example for iOS
253+
run: |
268254
cd example/ios
269-
xcodebuild -list
270255
271256
xcodebuild clean build \
272257
-project ReactNativeSdkExample.xcodeproj \
@@ -280,17 +265,16 @@ jobs:
280265
IPHONEOS_DEVELOPMENT_TARGET=13.0
281266
continue-on-error: true
282267

283-
# run: |
284-
# echo 'If you are using a "manual" build mode for one or more of the' \
285-
# 'languages you are analyzing, replace this with the commands to build' \
286-
# 'your code, for example:'
287-
# echo ' make bootstrap'
288-
# echo ' make release'
289-
# exit 1
268+
# ARCHS=arm64
269+
#
270+
# -sdk iphoneos \
271+
# SKIP_INSTALL=NO \
272+
#
290273
# yarn add @iterable/react-native-sdk
291274
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
292275
# echo "${{ env.TURBO_CACHE_DIR }}"
293276

277+
294278
- name: Perform CodeQL Analysis
295279
uses: github/codeql-action/analyze@v3
296280
with:

0 commit comments

Comments
 (0)