gnucash-docs maint: Add distchech to workflows

Frank H.Ellenberger fell at code.gnucash.org
Sat Jun 19 19:23:14 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash-docs/commit/6a082d3c (commit)
	from  https://github.com/Gnucash/gnucash-docs/commit/6d2877c5 (commit)



commit 6a082d3c49459a686a21da9723195babf4fa9828
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Sat Jun 19 01:45:46 2021 +0200

    Add distchech to workflows

diff --git a/.github/workflows/ci-test.yml b/.github/workflows/build-all.yml
similarity index 94%
copy from .github/workflows/ci-test.yml
copy to .github/workflows/build-all.yml
index 1c9dc86..ebba60a 100644
--- a/.github/workflows/ci-test.yml
+++ b/.github/workflows/build-all.yml
@@ -1,9 +1,9 @@
-name: ci-tests
+name: build-all
 on: [push, pull_request]
 jobs:
-  ci_tests_ubuntu-18:
+  build-all_ubuntu-18:
     runs-on: ubuntu-18.04
-    name: Ubuntu-18.04 CI Tests
+    name: Ubuntu-18.04 build all formats
     steps:
     - name: Checkout
       uses: actions/checkout at v2
@@ -51,9 +51,9 @@ jobs:
       with:
         name: TestLog
         path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log
-  ci_tests_ubuntu-latest:
+  build-all_ubuntu-latest:
     runs-on: ubuntu-latest
-    name: ubuntu-latest CI Tests
+    name: ubuntu-latest build all formatss
     steps:
     - name: Checkout
       uses: actions/checkout at v2
diff --git a/.github/workflows/ci-test.yml b/.github/workflows/dist-checks.yml
similarity index 59%
rename from .github/workflows/ci-test.yml
rename to .github/workflows/dist-checks.yml
index 1c9dc86..d77612e 100644
--- a/.github/workflows/ci-test.yml
+++ b/.github/workflows/dist-checks.yml
@@ -1,19 +1,15 @@
-name: ci-tests
+name: dist-checks
 on: [push, pull_request]
 jobs:
-  ci_tests_ubuntu-18:
+  ubuntu-18_dist-mini:
     runs-on: ubuntu-18.04
-    name: Ubuntu-18.04 CI Tests
+    name: Ubuntu-18.04 distcheck with minimal requirements
     steps:
     - name: Checkout
       uses: actions/checkout at v2
     - run: sudo apt-get update
     - name: Install minimal dependencies
       run: sudo apt-get install -y cmake ninja-build libxml2-utils xsltproc docbook-xsl
-    - name: Install PDF dependencies
-      run: sudo apt-get install -y fop
-    - name: Install additional mobi dependencies
-      run: sudo apt-get install -y calibre
     - run: |
         echo "ROOT_DIR=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV
     - name: Create Directories
@@ -25,45 +21,28 @@ jobs:
       run: |
         cd build
         cmake -G Ninja -DCMAKE_INSTALL_PREFIX=$ROOT_DIR/inst $GITHUB_WORKSPACE -DWITH_MOBI=ON
-    - name: Syntax Check GnuCash-docs
+    - name: Build distribution
       run: |
         cd build
-        ninja
-        ninja check
-    - name: Build HTML
+        ninja dist
+    - name: Check distribution
       run: |
         cd build
-        ninja html
-    - name: Build PDF
-      run: |
-        cd build
-        ninja pdf
-    - name: Build ePub
-      run: |
-        cd build
-        ninja epub
-    - name: Build mobi
-      run: |
-        cd build
-        ninja mobi
+        ninja distcheck
     - uses: actions/upload-artifact at v2
       if: failure()
       with:
         name: TestLog
         path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log
-  ci_tests_ubuntu-latest:
+  ubuntu-latest_dist-mini:
     runs-on: ubuntu-latest
-    name: ubuntu-latest CI Tests
+    name: Ubuntu-latest distcheck with minimal requirements
     steps:
     - name: Checkout
       uses: actions/checkout at v2
     - run: sudo apt-get update
     - name: Install minimal dependencies
       run: sudo apt-get install -y cmake ninja-build libxml2-utils xsltproc docbook-xsl
-    - name: Install PDF dependencies
-      run: sudo apt-get install -y fop
-    - name: Install additional mobi dependencies
-      run: sudo apt-get install -y calibre
     - run: |
         echo "ROOT_DIR=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV
     - name: Create Directories
@@ -75,30 +54,16 @@ jobs:
       run: |
         cd build
         cmake -G Ninja -DCMAKE_INSTALL_PREFIX=$ROOT_DIR/inst $GITHUB_WORKSPACE -DWITH_MOBI=ON
-    - name: Syntax Check GnuCash-docs
-      run: |
-        cd build
-        ninja
-        ninja check
-    - name: Build HTML
-      run: |
-        cd build
-        ninja html
-    - name: Build PDF
-      run: |
-        cd build
-        ninja pdf
-    - name: Build ePub
+    - name: Build distribution
       run: |
         cd build
-        ninja epub
-    - name: Build mobi
+        ninja dist
+    - name: Check distribution
       run: |
         cd build
-        ninja mobi
+        ninja distcheck
     - uses: actions/upload-artifact at v2
       if: failure()
       with:
         name: TestLog
         path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log
-



Summary of changes:
 .github/workflows/{ci-test.yml => build-all.yml}   | 10 ++--
 .github/workflows/{ci-test.yml => dist-checks.yml} | 61 +++++-----------------
 2 files changed, 18 insertions(+), 53 deletions(-)
 copy .github/workflows/{ci-test.yml => build-all.yml} (94%)
 rename .github/workflows/{ci-test.yml => dist-checks.yml} (59%)



More information about the gnucash-changes mailing list