forked from Gnucash/gnucash-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.03 KB
/
dist-check.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
name: dist-check
on: [push, pull_request]
jobs:
ubuntu-latest_dist-mini:
runs-on: ubuntu-latest
name: Ubuntu-latest distcheck with minimal requirements
steps:
- name: Checkout
uses: actions/checkout@v3
- 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 distribution
run: |
cd build
ninja dist
- name: Check distribution
run: |
cd build
ninja distcheck
- uses: actions/upload-artifact@v2
if: failure()
with:
name: TestLog
path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log