mirror of
https://github.com/leon-ai/leon.git
synced 2024-09-11 18:27:21 +03:00
feat(scripts): avoid LLM setup when running in CI
This commit is contained in:
parent
52cf4afbec
commit
bdff917e04
@ -1,3 +1,4 @@
|
|||||||
|
import { IS_GITHUB_ACTIONS } from '@/constants'
|
||||||
import { LoaderHelper } from '@/helpers/loader-helper'
|
import { LoaderHelper } from '@/helpers/loader-helper'
|
||||||
import { LogHelper } from '@/helpers/log-helper'
|
import { LogHelper } from '@/helpers/log-helper'
|
||||||
|
|
||||||
@ -24,7 +25,12 @@ import createInstanceID from './create-instance-id'
|
|||||||
await setupCore()
|
await setupCore()
|
||||||
await setupSkills()
|
await setupSkills()
|
||||||
LoaderHelper.stop()
|
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 setupBinaries()
|
||||||
await generateHTTPAPIKey()
|
await generateHTTPAPIKey()
|
||||||
await generateJSONSchemas()
|
await generateJSONSchemas()
|
||||||
|
@ -238,4 +238,5 @@ export const MINIMUM_REQUIRED_RAM = 4
|
|||||||
export const INSTANCE_ID = fs.existsSync(LEON_FILE_PATH)
|
export const INSTANCE_ID = fs.existsSync(LEON_FILE_PATH)
|
||||||
? JSON.parse(fs.readFileSync(LEON_FILE_PATH, 'utf8')).instanceID
|
? JSON.parse(fs.readFileSync(LEON_FILE_PATH, 'utf8')).instanceID
|
||||||
: null
|
: null
|
||||||
|
export const IS_GITHUB_ACTIONS = process.env['GITHUB_ACTIONS'] !== undefined
|
||||||
export const IS_GITPOD = process.env['GITPOD_WORKSPACE_URL'] !== undefined
|
export const IS_GITPOD = process.env['GITPOD_WORKSPACE_URL'] !== undefined
|
||||||
|
Loading…
Reference in New Issue
Block a user