Skip to content

Add a pre-commit config #177

Add a pre-commit config

Add a pre-commit config #177

Workflow file for this run

name: pages
on:
push:
branches:
- master
permissions:
contents: read
env:
UBUNTU_PACKAGES: libgudev-1.0-dev libxml++2.6-dev valgrind tree python3-pip python3-setuptools libevdev-dev doxygen
PIP_PACKAGES: meson ninja libevdev pyudev pytest yq
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pkginstall
with:
apt: $UBUNTU_PACKAGES
# install python so we get pip for meson
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- uses: ./.github/actions/pkginstall
with:
apt: $UBUNTU_PACKAGES
pip: $PIP_PACKAGES
- name: meson test ${{matrix.meson_options}}
uses: ./.github/actions/meson
with:
meson_args: -Ddocumentation=enabled
meson_skip_test: yes
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./builddir/html/
allow_empty_commit: true