docker
This commit is contained in:
parent
03c827e7ac
commit
b36083f09b
1 changed files with 1 additions and 51 deletions
|
|
@ -30,7 +30,7 @@ on:
|
|||
jobs:
|
||||
development:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/cirruslabs/flutter:3.35.5
|
||||
container: code.mnemo-cards.online/cinnabarflower/cards/agent:latest
|
||||
timeout-minutes: 360 # 6 hours
|
||||
# For scheduled runs, use matrix to run all components
|
||||
# For manual runs, use input component
|
||||
|
|
@ -48,62 +48,12 @@ jobs:
|
|||
if: github.event_name == 'schedule' || inputs.component == '' || inputs.component == matrix.component
|
||||
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
run: |
|
||||
# Try to install nodejs if missing (required for actions)
|
||||
if ! command -v node &> /dev/null; then
|
||||
echo "Node.js not found, installing..."
|
||||
# Check if running as root
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
apt-get update && apt-get install -y nodejs npm
|
||||
else
|
||||
sudo apt-get update && sudo apt-get install -y nodejs npm
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up Python and dependencies
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq python3 python3-pip python3-venv jq bash git
|
||||
python3 --version
|
||||
pip3 --version
|
||||
bash --version || echo "bash check failed"
|
||||
|
||||
- name: Install Cursor CLI
|
||||
run: |
|
||||
# bash should already be installed in previous step
|
||||
curl https://cursor.com/install -fsS | bash
|
||||
# Cursor installs to ~/.local/bin by default
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
# Also check ~/.cursor/bin (older location)
|
||||
if [ -d "$HOME/.cursor/bin" ]; then
|
||||
export PATH="$HOME/.cursor/bin:$PATH"
|
||||
echo "$HOME/.cursor/bin" >> $GITHUB_PATH
|
||||
fi
|
||||
# Verify installation
|
||||
if [ -f "$HOME/.local/bin/cursor-agent" ]; then
|
||||
echo "✅ Cursor CLI installed at $HOME/.local/bin/cursor-agent"
|
||||
chmod +x "$HOME/.local/bin/cursor-agent"
|
||||
"$HOME/.local/bin/cursor-agent" --version || echo "cursor-agent executable found but version check failed"
|
||||
elif [ -f "$HOME/.cursor/bin/cursor-agent" ]; then
|
||||
echo "✅ Cursor CLI installed at $HOME/.cursor/bin/cursor-agent"
|
||||
chmod +x "$HOME/.cursor/bin/cursor-agent"
|
||||
"$HOME/.cursor/bin/cursor-agent" --version || echo "cursor-agent executable found but version check failed"
|
||||
else
|
||||
echo "❌ Cursor CLI not found in expected locations"
|
||||
echo "Checking PATH..."
|
||||
command -v cursor-agent || echo "cursor-agent not in PATH"
|
||||
find "$HOME" -name "cursor-agent" -type f 2>/dev/null | head -5 || echo "No cursor-agent found in $HOME"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config --global user.name "AI Agent"
|
||||
|
|
|
|||
Loading…
Reference in a new issue