From b22bf07bc45263d7401d365d3568d2061433c065 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 9 Nov 2020 14:29:09 -0800 Subject: [PATCH] Setup Github Actions with CI testing for Ubuntu 18.04 --- .github/workflows/ci-tests.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci-tests.yml diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml new file mode 100644 index 0000000000..619679dd85 --- /dev/null +++ b/.github/workflows/ci-tests.yml @@ -0,0 +1,36 @@ +name: ci-tests +on: [push] +jobs: + ci_tests_ubuntu-18: + runs-on: ubuntu-18.04 + name: Ubuntu-18.04 Tests + env: + TZ: America/Los_Angeles + steps: + - name: Checkout + uses: actions/checkout@v2 + - 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