forked from seL4/seL4
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 974 Bytes
/
xml_lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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'
- 'libsel4/**/sel4*.xsd'
- 'libsel4/include/api/syscall.xml'
- 'libsel4/include/api/syscall.xsd'
pull_request:
paths:
- 'libsel4/**/sel4*.xml'
- 'libsel4/**/sel4*.xsd'
- 'libsel4/include/api/syscall.xml'
- 'libsel4/include/api/syscall.xsd'
jobs:
xmllint:
name: XML Lint
runs-on: ubuntu-latest
steps:
- name: apt-get update
run: sudo apt-get update
- name: install xmllint
run: sudo apt-get install libxml2-utils
- uses: actions/checkout@v3
- name: run xmllint
run: |
find libsel4 -name "sel4*.xml" | \
xargs xmllint --schema libsel4/tools/sel4_idl.xsd --noout
xmllint --schema libsel4/include/api/syscall.xsd --noout libsel4/include/api/syscall.xml