Skip to content

Commit

Permalink
Merge branch 'github-action' into maint
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Nov 13, 2020
2 parents 60f263e + 0b67068 commit 79951e0
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-docker.yml
@@ -0,0 +1,15 @@
name: ci-tests-docker
on: [push]
jobs:
ci_tests_archlinux:
runs-on: ubuntu-latest
name: Test Docker Action
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Test Action
uses: ./util/ci/actions/archlinux-test
- uses: actions/upload-artifact@v2
with:
name: TestLog
path: ${{ github.workspace }}/LastTest.log
8 changes: 8 additions & 0 deletions util/ci/actions/archlinux-test/Dockerfile
@@ -0,0 +1,8 @@
from archlinux/base
run pacman -Syu --quiet --noconfirm gcc cmake make boost python2 pkg-config gettext guile git ninja gtest gmock sqlite3 webkit2gtk swig gwenhywfar aqbanking intltool libxslt postgresql-libs libmariadbclient libdbi libdbi-drivers > /dev/null
run echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
run echo en_GB.UTF-8 UTF-8 >> /etc/locale.gen
run echo fr_FR.UTF-8 UTF-8 >> /etc/locale.gen
run locale-gen
copy entrypoint.sh /
entrypoint /entrypoint.sh
5 changes: 5 additions & 0 deletions util/ci/actions/archlinux-test/action.yaml
@@ -0,0 +1,5 @@
name: 'CI Tests ArchLinux'
description: 'Run GnuCash CI tests in an ArchLinux Docker'
runs:
using: 'docker'
image: 'Dockerfile'
13 changes: 13 additions & 0 deletions util/ci/actions/archlinux-test/entrypoint.sh
@@ -0,0 +1,13 @@
#!/bin/bash -le

mkdir -p "$HOME"/.local/share

mkdir build
cd build
export TZ="America/Los_Angeles"

cmake /github/workspace -DWITH_PYTHON=ON -DCMAKE_BUILD_TYPE=debug -G Ninja
ninja
ninja check

cp Testing/Temporary/LastTest.log /github/workspace

0 comments on commit 79951e0

Please sign in to comment.