mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
42 lines
929 B
YAML
42 lines
929 B
YAML
name: build & tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ development, master ]
|
|
pull_request:
|
|
branches: [ development, master ]
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
jobs:
|
|
run-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: archlinux:latest
|
|
volumes:
|
|
- ${{ github.workspace }}:/repo
|
|
options: -w /repo
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: create build environment
|
|
run: pacman -Sy --noconfirm base-devel cmake extra-cmake-modules python util-linux-libs xorg-server-xvfb
|
|
|
|
- name: install dependencies
|
|
run: pacman -S --noconfirm plasma-workspace
|
|
|
|
- name: configure cmake
|
|
run: cmake -B build -S sources -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_FUTURE=ON -DBUILD_TESTING=ON
|
|
|
|
- name: build
|
|
working-directory: /repo/build
|
|
run: make
|
|
|
|
- name: test
|
|
working-directory: /repo/build
|
|
run: xvfb-run -a make test
|