Files
seL4/.github/workflows/xml_lint.yml
Nick Spinale dbd6efc507 libsel4: rename interface XML files
Before, some object API XML files conflicted when the include,
arch_include, and sel4_arch_include directories were combined:

- include/interfaces/sel4.xml
- arch_include/*/interfaces/sel4arch.xml
- sel4_arch_include/*/interfaces/sel4arch.xml

This commit renames them to:

- include/interfaces/object-api.xml
- arch_include/*/interfaces/object-api-arch.xml
- sel4_arch_include/*/interfaces/object-api-sel4-arch.xml

Now, when the include, arch_include, and sel4_arch_include directories
are combined, we are left with:

- interfaces/object-api.xml
- interfaces/object-api-arch.xml
- interfaces/object-api-sel4-arch.xml

Signed-off-by: Nick Spinale <nick@nickspinale.com>
2024-06-30 18:28:12 +10:00

40 lines
980 B
YAML

# 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@v4
- name: run xmllint
run: |
find libsel4 -name "object-api*.xml" | \
xargs xmllint --schema libsel4/tools/sel4_idl.xsd --noout
xmllint --schema libsel4/include/api/syscall.xsd --noout libsel4/include/api/syscall.xml