github: CI action to lint libsel4 IDL files
This will lint everything called `sel4*.xml` under `libsel4/`. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
parent
08d7cb9049
commit
d1643774cd
1 changed files with 30 additions and 0 deletions
30
.github/workflows/xml_lint.yml
vendored
Normal file
30
.github/workflows/xml_lint.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 2021, Proofcraft Pty Ltd
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
# xmllint for seL4 IDL files
|
||||
|
||||
name: XML
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'libsel4/**/sel4*.xml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'libsel4/**/sel4*.xml'
|
||||
|
||||
jobs:
|
||||
xmllint:
|
||||
name: XML Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: install xmllint
|
||||
run: sudo apt-get install libxml2-utils
|
||||
- uses: actions/checkout@v2
|
||||
- name: run xmllint
|
||||
run: |
|
||||
find libsel4 -name "sel4*.xml" | \
|
||||
xargs xmllint --dtdvalid libsel4/tools/sel4_idl.dtd --noout
|
||||
Loading…
Reference in a new issue