forked from linux-test-project/ltp
-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (41 loc) · 1.2 KB
/
metadata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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
sudo PACKAGES_FOR_DOCPARSE_ONLY=1 ./ci/ubuntu.sh
- name: Compiler version
run: gcc --version
- name: Autotools
run: |
cd ltp
./build.sh -r autotools
- name: Configure
run: |
cd ltp
./configure --with-metadata-generator=asciidoctor
if ! grep "WITH_METADATA_HTML.*yes" include/mk/features.mk; then
echo "::error::No generation, probably failed to install all dependencies"
exit 1
fi
- name: Metadata
run: |
cd ltp/metadata
make -j$(getconf _NPROCESSORS_ONLN)
file ../docparse/*.html
- name: Metadata test
run: |
cd ltp/metadata
make test