2020-11-09 16:29:09 -06:00
|
|
|
name: ci-tests
|
2020-12-10 14:11:43 -06:00
|
|
|
on: [push, pull_request]
|
2020-11-09 16:29:09 -06:00
|
|
|
jobs:
|
|
|
|
ci_tests_ubuntu-18:
|
|
|
|
runs-on: ubuntu-18.04
|
2020-12-10 14:13:53 -06:00
|
|
|
name: Ubuntu-18.04 CI Tests
|
2020-11-09 16:29:09 -06:00
|
|
|
env:
|
|
|
|
TZ: America/Los_Angeles
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-11-30 12:26:50 -06:00
|
|
|
- run: sudo apt-get update
|
2020-11-09 16:29:09 -06:00
|
|
|
- name: Install additional dependencies
|
|
|
|
run: sudo apt-get install -y cmake libxslt-dev xsltproc ninja-build libboost-all-dev libgtk-3-dev guile-2.2-dev libgwengui-gtk3-dev libaqbanking-dev libofx-dev libdbi-dev libdbd-sqlite3 libwebkit2gtk-4.0-dev googletest
|
|
|
|
- name: Install language packs.
|
|
|
|
run: sudo apt-get --reinstall install -y language-pack-en language-pack-fr
|
|
|
|
- run: |
|
|
|
|
echo "ROOT_DIR=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV
|
|
|
|
- name: Create Directories
|
|
|
|
run: |
|
|
|
|
pwd
|
|
|
|
mkdir $ROOT_DIR/inst
|
|
|
|
mkdir build
|
|
|
|
- name: Configure GnuCash
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
cmake -G Ninja -DWITH_PYTHON=ON -DCMAKE_INSTALL_PREFIX=$ROOT_DIR/inst $GITHUB_WORKSPACE
|
|
|
|
- name: Build and Test GnuCash
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
ninja
|
|
|
|
ninja check
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: TestLog
|
|
|
|
path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log
|
2020-11-12 15:53:59 -06:00
|
|
|
ci_tests_ubuntu-20:
|
|
|
|
runs-on: ubuntu-20.04
|
2020-12-10 14:13:53 -06:00
|
|
|
name: Ubuntu-20.04 CI Tests
|
2020-11-12 15:53:59 -06:00
|
|
|
env:
|
|
|
|
TZ: America/Los_Angeles
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install apt utils
|
|
|
|
run: sudo apt-get install -y --no-install-recommends apt-utils
|
|
|
|
- name: Upgrade apt
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -y
|
|
|
|
sudo apt-get upgrade -y
|
|
|
|
- name: Install additional dependencies
|
2020-12-01 18:26:35 -06:00
|
|
|
run: sudo apt-get install -y cmake libxslt-dev xsltproc ninja-build libboost-all-dev libgtk-3-dev guile-3.0-dev libgwengui-gtk3-dev libaqbanking-dev libofx-dev libdbi-dev libdbd-sqlite3 libwebkit2gtk-4.0-dev googletest
|
2020-11-12 15:53:59 -06:00
|
|
|
- name: Install language packs.
|
|
|
|
run: sudo apt-get --reinstall install -y language-pack-en language-pack-fr
|
|
|
|
- run: |
|
|
|
|
echo "ROOT_DIR=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV
|
|
|
|
- name: Create Directories
|
|
|
|
run: |
|
|
|
|
pwd
|
|
|
|
mkdir $ROOT_DIR/inst
|
|
|
|
mkdir build
|
|
|
|
- name: Configure GnuCash
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
cmake -G Ninja -DWITH_PYTHON=ON -DCMAKE_INSTALL_PREFIX=$ROOT_DIR/inst $GITHUB_WORKSPACE
|
|
|
|
- name: Build and Test GnuCash
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
ninja
|
|
|
|
ninja check
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: TestLog
|
|
|
|
path: ${{ github.workspace }}/build/Testing/Temporary/LastTest.log
|