Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

chore: update build yml file setting (#2307)

Wendong-Faneb74548e6add
diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml
index 333bf0c17..abc5e792b 100644
--- a/.github/workflows/build_package.yml
+++ b/.github/workflows/build_package.yml
@@ -7,55 +7,66 @@ on:
jobs:
build:
runs-on: ubuntu-latest
- strategy:
- matrix:
- python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- - name: Clean up before build
+ - name: Free disk space
run: |
sudo apt-get clean
+ sudo apt-get autoremove -y
sudo rm -rf /var/lib/apt/lists/*
+ sudo rm -rf /usr/share/dotnet
+ sudo rm -rf /opt/ghc
+ sudo rm -rf /usr/local/share/boost
+ sudo rm -rf /usr/local/lib/android
sudo rm -rf /tmp/*
sudo rm -rf $HOME/.cache/pip
df -h
- name: Set up Python environment
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v3
with:
- python-version: ${{ matrix.python-version }}
+ python-version: "3.10"
- name: Install uv
run: |
pip install uv
- - name: Maximize build space
- uses: easimon/maximize-build-space@v10
- with:
- root-reserve-mb: 512
- swap-size-mb: 1024
- remove-dotnet: 'true'
- remove-android: 'true'
- remove-haskell: 'true'
-
- name: Create virtual environment
run: |
- uv venv .venv --python=${{ matrix.python-version }}
+ uv venv .venv --python=3.10
+ df -h
- - name: List files in working directory
- run: ls -la
+ - name: Install core dependencies
+ run: |
+ source .venv/bin/activate
+ # Install just the core dependencies first
+ uv pip install -e "."
+ df -h
- - name: Install dependencies
+ - name: Install dev dependencies
run: |
source .venv/bin/activate
- uv pip install -e ".[all, dev, docs]"
+ # Install dev dependencies separately
+ uv pip install -e ".[dev]"
+ df -h
- - name: Build
+ - name: Install docs dependencies
+ run: |
+ source .venv/bin/activate
+ # Install docs dependencies separately
+ uv pip install -e ".[docs]"
+ df -h
+
+ - name: Install build tools
run: |
source .venv/bin/activate
- uv pip install -e ".[all, dev, docs]"
uv pip install build
+ df -h
+
+ - name: Build
+ run: |
+ source .venv/bin/activate
python -m build
- name: Set up test environment
@@ -133,7 +144,12 @@ jobs:
if: always()
run: |
sudo apt-get clean
+ sudo apt-get autoremove -y
sudo rm -rf /var/lib/apt/lists/*
+ sudo rm -rf /usr/share/dotnet
+ sudo rm -rf /opt/ghc
+ sudo rm -rf /usr/local/share/boost
+ sudo rm -rf /usr/local/lib/android
sudo rm -rf /tmp/*
sudo rm -rf $HOME/.cache/pip
df -h