From 5a455d2d14eeb92346dda27a9fc9572215805504 Mon Sep 17 00:00:00 2001 From: "Frank H. Ellenberger" Date: Sun, 20 Jun 2021 01:53:04 +0200 Subject: [PATCH] workflows: separate HTML for faster results --- .../{dist-checks.yml => dist-check.yml} | 2 +- .github/workflows/html-ubuntu.yml | 61 +++++++++++++++++++ .../{build-all.yml => other-ubuntu.yml} | 14 +---- 3 files changed, 65 insertions(+), 12 deletions(-) rename .github/workflows/{dist-checks.yml => dist-check.yml} (99%) create mode 100644 .github/workflows/html-ubuntu.yml rename .github/workflows/{build-all.yml => other-ubuntu.yml} (91%) diff --git a/.github/workflows/dist-checks.yml b/.github/workflows/dist-check.yml similarity index 99% rename from .github/workflows/dist-checks.yml rename to .github/workflows/dist-check.yml index d77612ec6..b76f11000 100644 --- a/.github/workflows/dist-checks.yml +++ b/.github/workflows/dist-check.yml @@ -1,4 +1,4 @@ -name: dist-checks +name: dist-check on: [push, pull_request] jobs: ubuntu-18_dist-mini: diff --git a/.github/workflows/html-ubuntu.yml b/.github/workflows/html-ubuntu.yml new file mode 100644 index 000000000..c183d46d9 --- /dev/null +++ b/.github/workflows/html-ubuntu.yml @@ -0,0 +1,61 @@ +name: html-ubuntu +on: [push, pull_request] +jobs: + ubuntu-18_html: + runs-on: ubuntu-18.04 + name: make HTML in Ubuntu-18.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - run: sudo apt-get update + - name: Install minimal dependencies + run: sudo apt-get install -y cmake ninja-build libxml2-utils xsltproc docbook-xsl + - run: | + echo "ROOT_DIR=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV + - name: Create Directories + run: | + pwd + mkdir $ROOT_DIR/inst + mkdir build + - name: Configure GnuCash-docs + run: | + cd build + cmake -G Ninja -DCMAKE_INSTALL_PREFIX=$ROOT_DIR/inst $GITHUB_WORKSPACE -DWITH_MOBI=ON + - name: Build HTML + run: | + cd build + ninja html + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: TestLog + path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log + ubuntu-latest_dist-mini: + runs-on: ubuntu-latest + name: make HTML in Ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - run: sudo apt-get update + - name: Install minimal dependencies + run: sudo apt-get install -y cmake ninja-build libxml2-utils xsltproc docbook-xsl + - run: | + echo "ROOT_DIR=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV + - name: Create Directories + run: | + pwd + mkdir $ROOT_DIR/inst + mkdir build + - name: Configure GnuCash-docs + run: | + cd build + cmake -G Ninja -DCMAKE_INSTALL_PREFIX=$ROOT_DIR/inst $GITHUB_WORKSPACE -DWITH_MOBI=ON + - name: Build HTML + run: | + cd build + ninja html + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: TestLog + path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log diff --git a/.github/workflows/build-all.yml b/.github/workflows/other-ubuntu.yml similarity index 91% rename from .github/workflows/build-all.yml rename to .github/workflows/other-ubuntu.yml index ebba60a25..924f459ee 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/other-ubuntu.yml @@ -1,9 +1,9 @@ -name: build-all +name: other-ubuntu on: [push, pull_request] jobs: build-all_ubuntu-18: runs-on: ubuntu-18.04 - name: Ubuntu-18.04 build all formats + name: Ubuntu-18.04 build other formats steps: - name: Checkout uses: actions/checkout@v2 @@ -30,10 +30,6 @@ jobs: cd build ninja ninja check - - name: Build HTML - run: | - cd build - ninja html - name: Build PDF run: | cd build @@ -53,7 +49,7 @@ jobs: path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log build-all_ubuntu-latest: runs-on: ubuntu-latest - name: ubuntu-latest build all formatss + name: ubuntu-latest build other formatss steps: - name: Checkout uses: actions/checkout@v2 @@ -80,10 +76,6 @@ jobs: cd build ninja ninja check - - name: Build HTML - run: | - cd build - ninja html - name: Build PDF run: | cd build