release 0.1.10 #196
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: docs | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
submodules: true | |
- name: Run apt-get | |
run: | | |
set -x | |
sudo apt-get -y update | |
sudo apt-get -y install graphviz mscgen dia | |
sudo apt-get -y install lua5.4 liblua5.4-dev | |
- name: Install doxygen | |
run: | | |
set -x | |
curl https://www.doxygen.nl/files/doxygen-1.10.0.linux.bin.tar.gz | tar -xzf - | |
sudo make install -C doxygen-1.10.0 && rm -rf doxygen-1.10.0 | |
- uses: actions/checkout@v4 | |
with: | |
repository: luarocks/luarocks | |
path: luarocks | |
- name: Install luarocks | |
working-directory: luarocks | |
run: | | |
set -x | |
./configure && make && sudo make install | |
- name: Install LDoc | |
run: sudo luarocks install ldoc | |
- name: Build docs | |
env: | |
CC: clang | |
CXX: clang++ | |
run: | | |
set -x | |
cmake -S . -B build -DLIBA_DOXYGEN=1 \ | |
-DLIBA_LUA=1 -DLIBA_LDOC=1 \ | |
-DLIBA_JAVA=1 -DLIBA_JAVADOC=1 | |
cmake --build build --target adoc | |
cargo doc --release --no-deps -vv | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
submodules: true | |
repository: ${{ github.repository_owner }}/tqfx.github.io | |
path: _/${{ github.repository_owner }} | |
- name: Update docs | |
run: | | |
set -x | |
rm -rf _/${{ github.repository }} | |
mv build/html _/${{ github.repository }} | |
mv target/doc _/${{ github.repository }}/rust | |
mv build/lua/doc _/${{ github.repository }}/lua | |
mv build/java/javadoc/liba _/${{ github.repository }}/java | |
- uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
external_repository: ${{ github.repository_owner }}/tqfx.github.io | |
publish_dir: _/${{ github.repository_owner }} | |
- name: Run autotools | |
run: script/autogen | |
- uses: actions/upload-artifact@v4 | |
with: | |
if-no-files-found: ignore | |
name: ${{ github.sha }} | |
path: build/*.tar.* |