Skip to content

Commit 07dd54a

Browse files
committed
working on the artifact for ios
1 parent 387fae6 commit 07dd54a

File tree

1 file changed

+105
-104
lines changed

1 file changed

+105
-104
lines changed

.github/workflows/codeql.yml

Lines changed: 105 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -138,113 +138,114 @@ jobs:
138138

139139

140140
analyze3:
141-
name: Analyze (${{ matrix.language }})
142-
runs-on: ${{ (matrix.language == 'swift' && 'macos-15') || 'ubuntu-latest' }}
143-
permissions:
144-
# required for all workflows
145-
security-events: write
146-
147-
# required to fetch internal or private CodeQL packs
148-
packages: read
149-
150-
# only required for workflows in private repositories
151-
actions: read
152-
contents: read
153-
154-
strategy:
155-
fail-fast: false
156-
matrix:
157-
include:
158-
- language: swift
159-
build-mode: autobuild
160-
build-ios:
141+
# name: Analyze (${{ matrix.language }})
142+
# runs-on: ${{ (matrix.language == 'swift' && 'macos-15') || 'ubuntu-latest' }}
143+
# permissions:
144+
# # required for all workflows
145+
# security-events: write
146+
#
147+
# # required to fetch internal or private CodeQL packs
148+
# packages: read
149+
#
150+
# # only required for workflows in private repositories
151+
# actions: read
152+
# contents: read
153+
#
154+
# strategy:
155+
# fail-fast: false
156+
# matrix:
157+
# include:
158+
# - language: swift
159+
# build-mode: autobuild
160+
161+
name: build iOS
161162
runs-on: macos-14
162163
env:
163164
TURBO_CACHE_DIR: .turbo/ios
164-
steps:
165-
- name: Checkout
166-
uses: actions/checkout@v3
167-
168-
- name: Setup
169-
uses: ./.github/actions/setup
170-
171-
- name: Cache turborepo for iOS
172-
uses: actions/cache@v3
173-
with:
174-
path: ${{ env.TURBO_CACHE_DIR }}
175-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
176-
restore-keys: |
177-
${{ runner.os }}-turborepo-ios-
178-
179-
- name: Check turborepo cache for iOS
180-
run: |
181-
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
182-
183-
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
184-
echo "turbo_cache_hit=1" >> $GITHUB_ENV
185-
fi
186-
187-
- name: Cache cocoapods
188-
if: env.turbo_cache_hit != 1
189-
id: cocoapods-cache
190-
uses: actions/cache@v3
191-
with:
192-
path: |
193-
**/ios/Pods
194-
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
195-
restore-keys: |
196-
${{ runner.os }}-cocoapods-
197-
198-
- name: Install cocoapods
199-
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
200-
run: |
201-
cd example/ios
202-
pod install
203-
env:
204-
NO_FLIPPER: 1
205-
206-
- name: Build example for iOS
207-
run: |
208-
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
209-
echo "${{ env.TURBO_CACHE_DIR }}"
210-
211-
212-
# - name: 'Upload Artifact'
213-
# uses: actions/upload-artifact@v4
214-
# with:
215-
# name: ios-artifact
216-
# path:
165+
steps:
166+
- name: Checkout
167+
uses: actions/checkout@v3
168+
169+
- name: Setup
170+
uses: ./.github/actions/setup
171+
172+
- name: Cache turborepo for iOS
173+
uses: actions/cache@v3
174+
with:
175+
path: ${{ env.TURBO_CACHE_DIR }}
176+
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
177+
restore-keys: |
178+
${{ runner.os }}-turborepo-ios-
179+
180+
- name: Check turborepo cache for iOS
181+
run: |
182+
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
183+
184+
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
185+
echo "turbo_cache_hit=1" >> $GITHUB_ENV
186+
fi
187+
188+
- name: Cache cocoapods
189+
if: env.turbo_cache_hit != 1
190+
id: cocoapods-cache
191+
uses: actions/cache@v3
192+
with:
193+
path: |
194+
**/ios/Pods
195+
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
196+
restore-keys: |
197+
${{ runner.os }}-cocoapods-
198+
199+
- name: Install cocoapods
200+
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
201+
run: |
202+
cd example/ios
203+
pod install
204+
env:
205+
NO_FLIPPER: 1
206+
207+
- name: Build example for iOS
208+
run: |
209+
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
210+
echo "${{ env.TURBO_CACHE_DIR }}"
211+
212+
213+
# - name: 'Upload Artifact'
214+
# uses: actions/upload-artifact@v4
215+
# with:
216+
# name: ios-artifact
217+
# path:
217218

218219

219220
# Add any setup steps before running the `github/codeql-action/init` action.
220-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
221-
# or others). This is typically only required for manual builds.
222-
# - name: Setup runtime (example)
223-
# uses: actions/setup-example@v1
224-
225-
# Initializes the CodeQL tools for scanning.
226-
- name: Initialize CodeQL
227-
uses: github/codeql-action/init@v3
228-
with:
229-
languages: ${{ matrix.language }}
230-
build-mode: ${{ matrix.build-mode }}
231-
# If you wish to specify custom queries, you can do so here or in a config file.
232-
# By default, queries listed here will override any specified in a config file.
233-
# Prefix the list here with "+" to use these queries and those in the config file.
234-
235-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
236-
queries: ${{ matrix.language && 'security-extended, security-and-quality' }}
237-
238-
- if: matrix.build-mode == 'manual'
239-
shell: bash
240-
run: |
241-
echo 'If you are using a "manual" build mode for one or more of the' \
242-
'languages you are analyzing, replace this with the commands to build' \
243-
'your code, for example:'
244-
echo ' make bootstrap'
245-
echo ' make release'
246-
exit 1
247-
- name: Perform CodeQL Analysis
248-
uses: github/codeql-action/analyze@v3
249-
with:
250-
category: "/language:${{matrix.language}}"
221+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
222+
# or others). This is typically only required for manual builds.
223+
# - name: Setup runtime (example)
224+
# uses: actions/setup-example@v1
225+
226+
# Initializes the CodeQL tools for scanning.
227+
- name: Initialize CodeQL
228+
uses: github/codeql-action/init@v3
229+
with:
230+
languages: ${{ matrix.language }}
231+
build-mode: ${{ matrix.build-mode }}
232+
# If you wish to specify custom queries, you can do so here or in a config file.
233+
# By default, queries listed here will override any specified in a config file.
234+
# Prefix the list here with "+" to use these queries and those in the config file.
235+
236+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
237+
queries: ${{ matrix.language && 'security-extended, security-and-quality' }}
238+
239+
- if: matrix.build-mode == 'manual'
240+
shell: bash
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+
- name: Perform CodeQL Analysis
249+
uses: github/codeql-action/analyze@v3
250+
with:
251+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)