Skip to content

Commit 6802b24

Browse files
authored
Merge pull request #96 from melissawm/install-vcpkg
Fix acquire-zarr build for docs
2 parents 48f9a9b + 8582070 commit 6802b24

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
with:
4242
path: acquire-python # place in a named directory
4343
repository: acquire-project/acquire-python
44+
submodules: true
4445

4546
- name: Install acquire-python # For collecting the API reference
4647
run: |
4748
cd acquire-python
48-
git submodule update --init --recursive
4949
python -m pip install -e .
5050
5151
- name: Clone acquire-zarr repo
@@ -54,31 +54,34 @@ jobs:
5454
path: acquire-zarr # place in a named directory
5555
repository: acquire-project/acquire-zarr
5656

57-
- name: Install acquire-zarr # For collecting the API reference
57+
- name: Install Doxygen
58+
run: sudo apt-get install -y doxygen
59+
60+
- name: Install vcpkg
5861
run: |
59-
cd acquire-zarr
6062
git clone https://github.com/microsoft/vcpkg.git
6163
cd vcpkg && ./bootstrap-vcpkg.sh
62-
cat >> ~/.bashrc <<EOF
63-
export VCPKG_ROOT=${PWD}
64-
export PATH=\$VCPKG_ROOT:\$PATH
65-
EOF
66-
cd ..
64+
echo "VCPKG_ROOT=${{github.workspace}}/vcpkg" >> $GITHUB_ENV
65+
echo "${{github.workspace}}/vcpkg" >> $GITHUB_PATH
66+
./vcpkg integrate install
67+
shell: bash
68+
69+
- name: Install acquire-zarr # For collecting the API reference
70+
run: |
71+
cd acquire-zarr
72+
python -m pip install pybind11
6773
cmake --preset=default -B build -DBUILD_PYTHON=ON .
6874
cmake --build build
6975
python -m pip install .
7076
71-
- name: Install Doxygen
72-
run: sudo apt-get install -y doxygen
73-
7477
- name: Build website
7578
run: |
7679
cd acquire-docs
7780
mkdocs build
7881
7982
- name: Replace relative links in Doxygen include
8083
run: |
81-
sed -i 's@acquire_zarr_c_api/acquire_zarr_c_api#@#@g' site/stream_to_zarr/c_api/index.html
84+
sed -i 's@acquire_zarr_c_api/acquire_zarr_c_api#@#@g' acquire-docs/site/stream_to_zarr/c_api/index.html
8285
8386
- name: Deploy docs
8487
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)