From 4a3407cf717e86256c2efad4d5c4ef34a977ca60 Mon Sep 17 00:00:00 2001 From: Ben Jourdan Date: Mon, 11 Nov 2024 17:56:40 +0000 Subject: [PATCH] updating CI to build rust lib first before docs --- .github/workflows/CI.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index af59362..3688c56 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: |