Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CI tests on ArchLinux via docker container.
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: 'CI Tests ArchLinux' | ||
description: 'Run GnuCash CI tests in an ArchLinux Docker' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |