diff --git a/.github/workflows/metadata.yml b/.github/workflows/metadata.yml new file mode 100644 index 00000000000..3ca231ea086 --- /dev/null +++ b/.github/workflows/metadata.yml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2024 Petr Vorel + +name: "Test generating metadata documentation" +on: [push, pull_request] + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + metadata: + runs-on: ubuntu-latest + steps: + - name: Checkout LTP + uses: actions/checkout@v2 + with: + path: ltp + + - name: Compiler version + run: $CC --version + + - name: Autotools + run: ./build.sh -r autotools + + - name: Configure + run: | + CONFIGURE_OPT_EXTRA="--with-metadata-generator=asciidoctor" ./build.sh -r configure -o ${TREE:-in} -t $BUILD -c $CC + + - name: Metadata + run: | + #cd "$GITHUB_WORKSPACE/ltp/metadata" + cd ltp/metadata + make -j$(getconf _NPROCESSORS_ONLN) + file ../docparse/*.html + + - name: Metadata test + run: | + make test