-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Overhaul: Remove unnecessary complexity and platforms
This commit significantly simplifies the CI workflow by focusing on building and testing on the Linux platform. Changes include: • Removal of cross-compilation for various operating systems (macOS and Windows). • Streamlining the workflow to only include build and test stages. • Removal of the deploy stage as it's likely handled elsewhere. • Deletion of platform-specific Amber binaries as they are no longer built. Reason: This change reduces complexity and maintenance overhead while still ensuring core functionality is teste
- Loading branch information
Showing
3 changed files
with
126 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@echo off | ||
setlocal enabledelayedexpansion | ||
|
||
:: Define API keys and their corresponding URLs | ||
set "AMBER_FLUENT_SESSION_ID_01=" | ||
set "AMBER_ANOTHERWEBSERVICE_NJF=" | ||
set "AMBER_LOCAL_FLUENT_DEFAULT_KEY=" | ||
set "AMBER_REPO_CLOUD_FLUENT_DEMO_KEY=" | ||
set "AMBER_FLUENT_ANTHROPIC_KEY_01=https://console.anthropic.com/settings/keys" | ||
set "AMBER_FLUENT_GROQ_API_KEY_01=https://console.groq.com/keys" | ||
set "AMBER_FLUENT_MISTRAL_KEY_01=https://console.mistral.ai/api-keys/" | ||
set "AMBER_FLUENT_OPENAI_API_KEY_01=https://platform.openai.com/api-keys" | ||
set "AMBER_FLUENT_PERPLEXITY_API_KEY_01=https://www.perplexity.ai/settings/api" | ||
set "AMBER_FLUENT_GEMINI_API_KEY_01=https://ai.google.dev/" | ||
set "AMBER_FLUENT_COHERE_API_KEY_01=https://dashboard.cohere.com/api-keys" | ||
set "AMBER_FLUENT_HUGGINGFACE_API_KEY_01=https://huggingface.co/settings/tokens" | ||
set "AMBER_FLUENT_REPLICATE_API_KEY_01=https://replicate.com/account/api-tokens" | ||
set "AMBER_FLUENT_PINECONE_API_KEY_01=https://app.pinecone.io/..." | ||
set "AMBER_FLUENT_SEARCHAPI_KEY_ID_01=https://www.searchapi.io/" | ||
set "AMBER_FLUENT_SERPAPI_KEY_01=https://serpapi.com/manage-api-key" | ||
set "AMBER_FLUENT_ZEP_MEMORY_KEY_01=https://app.getzep.com/projects/" | ||
set "AMBER_LEONARDO_AI_KINO_XL_MODEL_ID=" | ||
set "AMBER_MAKE_LEONARDO_IMAGE_POST=" | ||
set "AMBER_FLUENT_LANGSMITH_KEY_01=https://smith.langchain.com/" | ||
set "AMBER_FLUENT_GITHUB_PAT_KEY_01=https://github.com/settings/tokens" | ||
|
||
:: Array of all API keys | ||
set keys=AMBER_FLUENT_SESSION_ID_01 AMBER_ANOTHERWEBSERVICE_NJF AMBER_LOCAL_FLUENT_DEFAULT_KEY AMBER_REPO_CLOUD_FLUENT_DEMO_KEY AMBER_FLUENT_ANTHROPIC_KEY_01 AMBER_FLUENT_GROQ_API_KEY_01 AMBER_FLUENT_MISTRAL_KEY_01 AMBER_FLUENT_OPENAI_API_KEY_01 AMBER_FLUENT_PERPLEXITY_API_KEY_01 AMBER_FLUENT_GEMINI_API_KEY_01 AMBER_FLUENT_COHERE_API_KEY_01 AMBER_FLUENT_HUGGINGFACE_API_KEY_01 AMBER_FLUENT_REPLICATE_API_KEY_01 AMBER_FLUENT_PINECONE_API_KEY_01 AMBER_FLUENT_SEARCHAPI_KEY_ID_01 AMBER_FLUENT_SERPAPI_KEY_01 AMBER_FLUENT_ZEP_MEMORY_KEY_01 AMBER_LEONARDO_AI_KINO_XL_MODEL_ID AMBER_MAKE_LEONARDO_IMAGE_POST AMBER_FLUENT_LANGSMITH_KEY_01 AMBER_FLUENT_GITHUB_PAT_KEY_01 | ||
|
||
:: Loop through each key | ||
for %%k in (%keys%) do ( | ||
set key=%%k | ||
set url=!%%k! | ||
|
||
powershell -Command "$choice = Read-Host 'Do you want to set the key !key!? (y/n)'; if ($choice -eq 'y') { exit 0 } else { exit 1 }" | ||
if !ERRORLEVEL! EQU 0 ( | ||
if not "!url!"=="" ( | ||
echo Opening the default browser for more info on !key!. | ||
start "" "!url!" | ||
) | ||
|
||
powershell -Command "$key_value = Read-Host 'Enter the key for !key!'; echo $key_value" | ||
set key_value=!key_value! | ||
|
||
echo Encrypting key for !key!... | ||
amber encrypt !key! "!key_value!" | ||
|
||
echo Key !key! set successfully. | ||
) else ( | ||
echo Skipping !key!. | ||
) | ||
|
||
echo. | ||
) | ||
|
||
echo All keys processed. | ||
pause | ||
|
||
:end | ||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
@echo off | ||
setlocal | ||
|
||
:: User's home directory variable | ||
set "USER_HOME=c:\users\%USERNAME%" | ||
|
||
:: Path to the directory where the tarball will be extracted | ||
set "EXTRACT_DIR=%USER_HOME%\.fluent_cli" | ||
|
||
:: Extract the tarball | ||
echo Extracting files... | ||
tar -zxvf .\fluent-x86_64-pc-windows-msvc-v.0.3.5.1.tar.gz -C "%EXTRACT_DIR%" | ||
|
||
:: Move the files up one directory level | ||
echo Moving files... | ||
move "%EXTRACT_DIR%\fluent_cli\*" "%EXTRACT_DIR%\" | ||
|
||
:: Remove the now empty directory | ||
echo Cleaning up... | ||
rmdir "%EXTRACT_DIR%\fluent_cli" | ||
|
||
:: Set environment variables | ||
echo Setting environment variables... | ||
setx FLUENT_CLI_CONFIG_PATH "%EXTRACT_DIR%\config.json" | ||
setx AMBER_YAML "%EXTRACT_DIR%\amber.yaml" | ||
|
||
:: Add the extraction directory to the system PATH | ||
set "NEW_PATH=%EXTRACT_DIR%;%PATH%" | ||
setx PATH "%NEW_PATH%" | ||
|
||
:: Ask the user for AMBER_SECRET or if they need to init | ||
echo Please choose an option: | ||
echo 1. Enter AMBER_SECRET | ||
echo 2. Initialize Amber (amber init) | ||
set /p user_option="Enter your choice (1 or 2): " | ||
|
||
if "%user_option%"=="1" ( | ||
set /p AMBER_SECRET="Enter your AMBER_SECRET: " | ||
setx AMBER_SECRET "%AMBER_SECRET%" | ||
) else if "%user_option%"=="2" ( | ||
cd "%EXTRACT_DIR%" | ||
echo Initializing Amber... | ||
amber init | ||
echo Copy that key and now enter it to set the ENV Variable | ||
set /p AMBER_SECRET="Enter your AMBER_SECRET: " | ||
setx AMBER_SECRET "%AMBER_SECRET%" | ||
) | ||
|
||
echo Process completed. | ||
pause | ||
|
||
:end | ||
endlocal |