Skip to content

Commit 4fa2162

Browse files
running code build separately.
1 parent 36e97ad commit 4fa2162

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 22 additions & 20 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
@@ -213,6 +213,19 @@ jobs:
213213

214214
- if: matrix.build-mode == 'manual'
215215
shell: bash
216+
run: |
217+
echo 'If you are using a "manual" build mode for one or more of the' \
218+
'languages you are analyzing, replace this with the commands to build' \
219+
'your code, for example:'
220+
echo ' make bootstrap'
221+
echo ' make release'
222+
exit 1
223+
224+
# yarn add @iterable/react-native-sdk
225+
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
226+
# echo "${{ env.TURBO_CACHE_DIR }}"
227+
228+
- name: Build example for iOS
216229
run: |
217230
cd example/ios
218231
@@ -224,26 +237,8 @@ jobs:
224237
CODE_SIGNING_ALLOWED=NO \
225238
BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
226239
APPLICATION_EXTENSION_API_ONLY=NO \
227-
exit 1
228240
229-
# yarn add @iterable/react-native-sdk
230-
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
231-
# echo "${{ env.TURBO_CACHE_DIR }}"
232-
233-
# - name: Build example for iOS
234-
# run: |
235-
# cd example/ios
236-
#
237-
# xcodebuild clean build \
238-
# -workspace ReactNativeSdkExample.xcworkspace \
239-
# -scheme ReactNativeSdkExample \
240-
# CODE_SIGN_IDENTITY="" \
241-
# CODE_SIGNING_REQUIRED=NO \
242-
# CODE_SIGNING_ALLOWED=NO \
243-
# BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
244-
# APPLICATION_EXTENSION_API_ONLY=NO \
245-
#
246-
# yarn add -D @react-native-community/cli
241+
yarn add -D @react-native-community/cli
247242
continue-on-error: true
248243

249244
# ARCHS=arm64
@@ -255,6 +250,13 @@ jobs:
255250
# yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
256251
# echo "${{ env.TURBO_CACHE_DIR }}"
257252

253+
# - uses: actions/upload-artifact@v4
254+
# with:
255+
# name: my-artifact
256+
# include-hidden-files: true
257+
# path: |
258+
# path/output/
259+
# !path/output/.production.env
258260

259261
- name: Perform CodeQL Analysis
260262
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)