summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-04-15 11:41:09 (GMT)
committerThomas Haller <thaller@redhat.com>2022-04-15 13:20:18 (GMT)
commitd63e47338b1a2790fbe6569ee8560e8187a2d44b (patch)
tree7d5969c7efe6a47eeda3421eecffde1a43335159
parentfa7f97f8982544c4fcb403893bae6701230d5165 (diff)
downloadlibnl-d63e47338b1a2790fbe6569ee8560e8187a2d44b.zip
libnl-d63e47338b1a2790fbe6569ee8560e8187a2d44b.tar.gz
libnl-d63e47338b1a2790fbe6569ee8560e8187a2d44b.tar.bz2
github: build documentation in CI test
-rw-r--r--.github/workflows/ci.yml21
-rwxr-xr-xtools/build_release.sh4
2 files changed, 23 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d486c3f..b2933b0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,7 +16,10 @@ jobs:
- name: Install packages
run: |
sudo apt-get update
- sudo apt-get -y install check valgrind libtool-bin
+ sudo apt-get -y --no-install-recommends install \
+ check \
+ valgrind \
+ libtool-bin
- name: Check out repository code
uses: actions/checkout@v2
- name: Build
@@ -44,4 +47,20 @@ jobs:
CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-all
CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-direct
shell: bash
+ - name: Install packages for Release
+ run: |
+ test "${{ matrix.cc }}" == gcc || exit 0
+ sudo apt-get -y --no-install-recommends install \
+ asciidoc \
+ doxygen \
+ graphviz \
+ mscgen \
+ source-highlight \
+ python3-pygments
+ - name: Build Release
+ run: |
+ test "${{ matrix.cc }}" == gcc || exit 0
+ set -x
+ git clean -fdx
+ NO_GPG_SIGN=1 ./tools/build_release.sh BuildAll
- run: echo "🍏 This job's status is ${{ job.status }}."
diff --git a/tools/build_release.sh b/tools/build_release.sh
index 3eb45ba..2c77d24 100755
--- a/tools/build_release.sh
+++ b/tools/build_release.sh
@@ -56,7 +56,9 @@ Copy() {
for F in "libnl-$V.tar.gz" "libnl-doc-$V.tar.gz"; do
md5sum "./$F" > "./$F.md5sum"
sha256sum "./$F" > "./$F.sha256sum"
- gpg ${GPG_USER--u thaller@redhat.com} --armor --verbose -o "./$F.sig" --detach-sign "./$F"
+ if [ "$NO_GPG_SIGN" != 1 ]; then
+ gpg ${GPG_USER--u thaller@redhat.com} --armor --verbose -o "./$F.sig" --detach-sign "./$F"
+ fi
done
)
tar -cvf "./$REL.tar" "./$REL/"