Skip to content

Commit

Permalink
workflows: separate HTML for faster results
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen committed Jun 19, 2021
1 parent 6a082d3 commit 5a455d2
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: dist-checks
name: dist-check
on: [push, pull_request]
jobs:
ubuntu-18_dist-mini:
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/html-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -30,10 +30,6 @@ jobs:
cd build
ninja
ninja check
- name: Build HTML
run: |
cd build
ninja html
- name: Build PDF
run: |
cd build
Expand All @@ -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
Expand All @@ -80,10 +76,6 @@ jobs:
cd build
ninja
ninja check
- name: Build HTML
run: |
cd build
ninja html
- name: Build PDF
run: |
cd build
Expand Down

0 comments on commit 5a455d2

Please sign in to comment.