Skip to content

Commit

Permalink
ci: Run doxygen on linux and macos builds
Browse files Browse the repository at this point in the history
Signed-off-by: Tormod Volden <[email protected]>
  • Loading branch information
tormodvolden committed Aug 11, 2024
1 parent dd926e6 commit f53f7fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
shell: bash
run: |
brew update
brew install autoconf automake libtool m4
brew install autoconf automake libtool m4 doxygen
- name: bootstrap
shell: bash
run: ./bootstrap.sh

- 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
Expand Down
9 changes: 9 additions & 0 deletions .private/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ scriptdir=$(dirname $(readlink -f "$0"))
install=no
test=yes
asan=yes
docs=no

while [ $# -gt 0 ]; do
case "$1" in
Expand All @@ -30,6 +31,10 @@ while [ $# -gt 0 ]; do
asan=no
shift
;;
--build-docs)
docs=yes
shift
;;
--)
shift
break;
Expand Down Expand Up @@ -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/"
Expand Down

0 comments on commit f53f7fe

Please sign in to comment.