Skip to content

Commit 12208e3

Browse files
committed
add archlinux-via-docker
1 parent dee29a3 commit 12208e3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/arch.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: archlinux
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: archlinux:latest
14+
strategy:
15+
matrix:
16+
buildtype: [Debug, Release]
17+
steps:
18+
- uses: actions/checkout@v3
19+
- run: >
20+
pacman -Sy --noconfirm
21+
base-devel
22+
boost-libs boost
23+
qt5-base qt5-tools
24+
poppler-qt5
25+
cmake
26+
xorg-server-xvfb
27+
- run: >
28+
cmake -B build/
29+
-DCMAKE_VERBOSE_MAKEFILE=ON
30+
-DUsePrerenderedPDF=ON
31+
-DCodeCoverage=ON
32+
-DWarningAsError=ON
33+
-DCMAKE_BUILD_TYPE=${{matrix.buildtype}}
34+
.
35+
- run: cmake --build build/
36+
- name: run tests within xvfb
37+
working-directory: build/
38+
run: >
39+
xvfb-run -a -s '-screen 0 1920x1080x24 -screen 1 1920x1200x24'
40+
ctest --output-on-failure --timeout 60
41+
- name: upload coverage
42+
run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)