Skip to content

Commit

Permalink
updating CI to build rust lib first before docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BenJourdan committed Nov 11, 2024
1 parent c4819e8 commit 4a3407c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,22 @@ jobs:
echo "activate_venv=source venv/bin/activate" >> $GITHUB_ENV # Store the activation command as output for later reuse
shell: bash

# Step 4: Install dependencies for docs
# Step 4: Install dependencies (including maturin)
- name: Install dependencies for docs
run: |
${{ env.activate_venv }} # Use stored activation command
${{ env.activate_venv }}
pip install --upgrade pip
pip install maturin
pip install -r requirements.txt
shell: bash

# Step 5: Build and install Rust library using Maturin (in release mode)
- name: Build and install Rust library
run: |
${{ env.activate_venv }}
maturin develop --release
shell: bash

# Step 5: Build Sphinx documentation
- name: Build Sphinx documentation
run: |
Expand Down

0 comments on commit 4a3407c

Please sign in to comment.