Skip to content

Commit

Permalink
feat(scripts): avoid LLM setup when running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed May 8, 2024
1 parent 52cf4af commit bdff917
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/setup/setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { IS_GITHUB_ACTIONS } from '@/constants'
import { LoaderHelper } from '@/helpers/loader-helper'
import { LogHelper } from '@/helpers/log-helper'

Expand All @@ -24,7 +25,12 @@ import createInstanceID from './create-instance-id'
await setupCore()
await setupSkills()
LoaderHelper.stop()
await setupLLM()
if (!IS_GITHUB_ACTIONS) {
await setupLLM()
} else {
LogHelper.info('Skipping LLM setup because it is running in CI')
}

await setupBinaries()
await generateHTTPAPIKey()
await generateJSONSchemas()
Expand Down
1 change: 1 addition & 0 deletions server/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,5 @@ export const MINIMUM_REQUIRED_RAM = 4
export const INSTANCE_ID = fs.existsSync(LEON_FILE_PATH)
? JSON.parse(fs.readFileSync(LEON_FILE_PATH, 'utf8')).instanceID
: null
export const IS_GITHUB_ACTIONS = process.env['GITHUB_ACTIONS'] !== undefined
export const IS_GITPOD = process.env['GITPOD_WORKSPACE_URL'] !== undefined

0 comments on commit bdff917

Please sign in to comment.