-
Notifications
You must be signed in to change notification settings - Fork 10
72 lines (70 loc) · 2.46 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Publish docs via Github Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v1
- name: Set up SBCL via Roswell.
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
ros install sbcl-bin/2.4.0
ros use sbcl-bin/2.4.0
ros install qlot
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Update $PATH
run: |
echo $PATH
export PATH=/home/runner/.roswell/bin:$PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Installing ISL
run: sudo apt-get install -y libisl-dev cmake
- name: Download and install Abseil
run: |
set -ex
git clone --recursive -b lts_2024_07_22 https://github.com/abseil/abseil-cpp $GITHUB_WORKSPACE/abseil-cpp
cd $GITHUB_WORKSPACE/abseil-cpp
sudo cmake . -DCMAKE_CXX_STANDARD=17 -DABSL_ENABLE_INSTALL=ON
sudo make -j20
sudo make install
sudo ldconfig
- name: Download and install protobuf
run: |
git clone --recursive -b 28.x https://github.com/protocolbuffers/protobuf
cd protobuf/cmake
mkdir build
cd build
cmake -DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_ABSL_PROVIDER=package -DCMAKE_INSTALL_PREFIX=/usr/local/ ../..
sudo make install -j20
sudo ldconfig
- name: Set up cl-protobufs
run: |
git clone https://github.com/qitab/cl-protobufs.git
cd cl-protobufs/protoc
cmake . -DCMAKE_CXX_STANDARD=17
cmake --build . --target install --parallel 16
cd ../../
- name: Installing requirements
run: make install_docs
- name: Building documentations
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
qlot install
CI=1 mkdir -p docs/packages && qlot exec make build_docs && echo -e "markdown-katex\nlantana==2.11.2" > docs/requirements.txt
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
REQUIREMENTS: ./docs/requirements.txt