diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3562935..f67cf0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: DEBIAN_FRONTEND=noninteractive sudo apt-get install -yq \ ${{ matrix.pkgs }} cmake git golang libbrotli-dev \ libgtest-dev liblz4-dev libpcre2-dev libprotobuf-dev libunwind-dev \ - libusb-1.0-0-dev libzstd-dev make pkg-config + libusb-1.0-0-dev libzstd-dev make pandoc pkg-config - name: checkout uses: actions/checkout@v4 with: @@ -26,6 +26,10 @@ jobs: run: | cd vendor/boringssl go mod vendor + - name: generate man page + run: | + cd vendor/adb/docs/user + pandoc -s -t man adb.1.md -o adb.1 - name: build & install run: | mkdir build && cd build diff --git a/vendor/CMakeLists.adb.txt b/vendor/CMakeLists.adb.txt index 7f59783..5feef00 100644 --- a/vendor/CMakeLists.adb.txt +++ b/vendor/CMakeLists.adb.txt @@ -213,3 +213,5 @@ if(APPLE) "-framework CoreFoundation" "-framework IOKit") endif() + +install(FILES adb/docs/user/adb.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)