Skip to content

Commit

Permalink
ci: Add job for building metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jan 4, 2024
1 parent fd18453 commit e707c47
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2024 Petr Vorel <pvorel@suse.cz>

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: Install packages for generating documentation
run: |
cd ltp
PACKAGES_FOR_DOCPARSE_ONLY=1 sudo ./ci/ubuntu.sh
- 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 metadata
make -j$(getconf _NPROCESSORS_ONLN)
file ../docparse/*.html
- name: Metadata test
run: make test

0 comments on commit e707c47

Please sign in to comment.