diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index cae0184a8..c17ce8860 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -20,7 +20,7 @@ jobs: - name: setup prerequisites run: | sudo apt update - sudo apt install autoconf automake libtool libudev-dev m4 + sudo apt install autoconf automake libtool libudev-dev m4 doxygen - name: bootstrap run: ./bootstrap.sh @@ -30,7 +30,7 @@ jobs: run: .private/ci-build.sh --build-dir build-netlink --no-test -- --disable-udev - name: udev - run: .private/ci-build.sh --build-dir build-udev -- --enable-udev + run: .private/ci-build.sh --build-dir build-udev --build-docs -- --enable-udev - name: debug-log run: .private/ci-build.sh --build-dir build-debug -- --enable-debug-log diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 308ea2a8f..cac918737 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,7 +21,7 @@ jobs: shell: bash run: | brew update - brew install autoconf automake libtool m4 + brew install autoconf automake libtool m4 doxygen - name: bootstrap shell: bash @@ -29,7 +29,7 @@ jobs: - name: compile shell: bash - run: .private/ci-build.sh --build-dir build + run: .private/ci-build.sh --build-dir build --build-docs - name: Xcode shell: bash diff --git a/.private/ci-build.sh b/.private/ci-build.sh index 33dfb3b98..4b8026d25 100755 --- a/.private/ci-build.sh +++ b/.private/ci-build.sh @@ -7,6 +7,7 @@ scriptdir=$(dirname $(readlink -f "$0")) install=no test=yes asan=yes +docs=no while [ $# -gt 0 ]; do case "$1" in @@ -30,6 +31,10 @@ while [ $# -gt 0 ]; do asan=no shift ;; + --build-docs) + docs=yes + shift + ;; --) shift break; @@ -76,6 +81,10 @@ echo "" echo "Building ..." make -j4 -k +if [ "${docs}" = "yes" ]; then + make -C docs +fi + if [ "${test}" = "yes" ]; then # Load custom shim for WebUSB tests that simulates Web environment. export NODE_OPTIONS="--require ${scriptdir}/../tests/webusb-test-shim/"