Skip to content

Commit 71ba6a3

Browse files
authored
Merge pull request #353 from Simple-Robotics/gh-pages-use-pixi
gh-pages workflow : use pixi
2 parents 687117c + e85bcb5 commit 71ba6a3

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,13 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21-
- uses: conda-incubator/setup-miniconda@v3
2221
with:
23-
miniforge-version: latest
24-
channels: conda-forge
25-
mamba-version: "*"
26-
python-version: "3.12"
27-
activate-environment: doc
28-
conda-remove-defaults: "true"
29-
- name: Dependencies
30-
shell: bash -l {0}
31-
run: |
32-
# Compilation related dependencies
33-
mamba install cmake make pkg-config doxygen graphviz
22+
submodules: recursive
3423

35-
# Main dependencies
36-
mamba install eigen pinocchio fmt example-robot-data
24+
- uses: prefix-dev/[email protected]
25+
with:
26+
cache: true
27+
environments: default
3728

3829
- name: Print environment
3930
shell: bash -l {0}
@@ -42,22 +33,11 @@ jobs:
4233
mamba list
4334
env
4435
45-
- name: Configure
46-
shell: bash -l {0}
47-
run: |
48-
git submodule update --init
49-
mkdir build
50-
cd build
51-
cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_INTERFACE:BOOL=OFF\
52-
-DPYTHON_EXECUTABLE=$(which python3) -DBUILD_DOCUMENTATION:BOOL=ON \
53-
-DBUILD_BENCHMARKS:BOOL=OFF -DINSTALL_DOCUMENTATION:BOOL=ON -DBUILD_TESTING:BOOL=OFF \
54-
-DBUILD_CROCODDYL_COMPAT:BOOL=OFF
55-
5636
- name: Build documentation
5737
shell: bash -l {0}
5838
run: |
59-
cd build
60-
cmake --build . --config Release --target doc
39+
pixi run configure
40+
cmake --build build --config Release --target doc
6141
6242
- name: Upload to GitHub pages
6343
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)