From d1a1e815d5fe00cae48f88df880fcd29e4673a30 Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Thu, 4 Jan 2024 20:24:06 +0100 Subject: [PATCH] ci: Add job for building metadata Signed-off-by: Petr Vorel --- .github/workflows/metadata.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/metadata.yml 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