-
Notifications
You must be signed in to change notification settings - Fork 44
84 lines (68 loc) · 2.21 KB
/
generate-rfcs.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: "Build/Test the Matroska RFCs"
# Trigger the workflow on push or pull request
on:
push:
branches: [ master ]
pull_request:
jobs:
build_ietf:
name: "Build RFCS"
runs-on: ubuntu-18.04
steps:
- name: Get pushed code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Get python (for xml2rfc)
uses: actions/setup-python@v1
- name: Setup test tools
# we need the apt update because old packages won't load
run: |
sudo apt update
sudo apt install xsltproc mmark
- name: Setup toolchain
run: ./bootstrap
- name: Build Matroska IETF documents
run: make matroska
- name: Build Codecs IETF documents
run: make codecs
- name: Build Tags IETF documents
run: make tags
# "all" target not covered by matroska+codecs+tags+test
# in case we add more stuff in there
- name: Build remaining
run: make
- name: Move Generated files
run: |
mkdir -p artifacts
mv draft-ietf-cellar-matroska-??.xml artifacts
mv draft-ietf-cellar-codec-??.xml artifacts
mv draft-ietf-cellar-tags-??.xml artifacts
mv draft-ietf-cellar-chapter-codecs-??.xml artifacts
mv draft-ietf-cellar-control-??.xml artifacts
mv matroska_iana.xml artifacts
- name: XML Artifact
uses: actions/upload-artifact@master
with:
name: ietf-xmls
path: artifacts
schema_test:
name: "Test Schema"
runs-on: ubuntu-18.04
steps:
- name: Get pushed code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Get python (for xml2rfc)
uses: actions/setup-python@v1
- name: Setup test tools
# we need the apt update because old packages won't load
run: |
sudo apt update
sudo apt install xsltproc libxml2-utils
- name: Setup toolchain and EBML Schema
run: ./bootstrap
# First check the Matroska EBML Schema is valid
- name: Test Matroska EBML Schema
run: make check