ci: update macOS image and codecov action (#43) #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Doxygen | |
on: | |
push: | |
branches: | |
- master | |
- doc-* | |
jobs: | |
doc: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: install deps | |
run: | | |
sudo apt update | |
sudo apt install -y libclang-12-dev | |
git clone https://github.com/doxygen/doxygen doxygen-tool | |
cd doxygen-tool | |
mkdir build | |
cd build | |
cmake -Duse_libclang=ON -DCMAKE_PREFIX_PATH=/usr/lib/llvm-12/ .. | |
make -j$(nproc) | |
sudo make install | |
cd ../.. | |
sudo npm install -g surge | |
- name: apply patch to README | |
run: | | |
sed -i 's/!\[puffer\](.*)//g' README.md | |
sed -i 's|\[!\[\([^(]*\)\]([^)]*)|[\1|g' README.md | |
sed -i 's|```c++|```{.cpp}|g' README.md | |
sed -i 's|:closed_book:.*||g' README.md | |
- name: doxygen | |
run: doxygen Doxyfile | |
- name: upload | |
run: surge ./doxygen/html protopuf.surge.sh --token ${{ secrets.SURGE_TOKEN }} |