Implement CI tests on ArchLinux via docker container.

This commit is contained in:
John Ralls 2020-11-12 19:32:10 -08:00
parent 31c9c5e080
commit 0b670680d7
4 changed files with 41 additions and 0 deletions

15
.github/workflows/ci-docker.yml vendored Normal file
View File

@ -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

View File

@ -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

View File

@ -0,0 +1,5 @@
name: 'CI Tests ArchLinux'
description: 'Run GnuCash CI tests in an ArchLinux Docker'
runs:
using: 'docker'
image: 'Dockerfile'

View File

@ -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