Skip to content

Commit

Permalink
add archlinux-via-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyedel committed Apr 27, 2023
1 parent dee29a3 commit 9788092
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: archlinux

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
strategy:
matrix:
buildtype: [Debug, Release]
steps:
- uses: actions/checkout@v3
- run: >
pacman -Sy --noconfirm
base-devel
git
boost-libs boost
qt5-base qt5-tools
poppler-qt5
cmake
xorg-server-xvfb
- run: >
cmake -B build/
-DCMAKE_VERBOSE_MAKEFILE=ON
-DUsePrerenderedPDF=ON
-DCodeCoverage=ON
-DWarningAsError=ON
-DCMAKE_BUILD_TYPE=${{matrix.buildtype}}
.
- run: cmake --build build/
- name: run tests within xvfb
working-directory: build/
run: >
xvfb-run -a -s '-screen 0 1920x1080x24 -screen 1 1920x1200x24'
ctest --output-on-failure --timeout 60
- name: upload coverage
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 9788092

Please sign in to comment.