-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (39 loc) · 1.61 KB
/
libmatroska-semantic.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
name: "libmatroska Semantic"
on:
push:
branches: [ master ]
pull_request:
# branches: [ master ]
schedule:
- cron: '44 16 * * 6'
jobs:
xlst_generators:
name: Generate code from EBML Schema
runs-on: ubuntu-latest
steps:
- name: Get pushed code
uses: actions/checkout@v3
- name: Get EBML Schema
run: curl -o ebml_matroska.xml https://raw.githubusercontent.com/ietf-wg-cellar/matroska-specification/master/ebml_matroska.xml
- name: Setup test tools
# we need the apt update because old packages won't load
run: |
sudo apt update
sudo apt install xsltproc
- name: Generate code
run: |
xsltproc -o _build/src/KaxSemantic.cpp spectool/schema_2_kaxsemantic_cpp.xsl ebml_matroska.xml
xsltproc -o _build/matroska/KaxSemantic.h spectool/schema_2_kaxsemantic_h.xsl ebml_matroska.xml
- name: Get current libmatroska code
run: |
curl -o KaxSemantic.cpp https://raw.githubusercontent.com/Matroska-Org/libmatroska/master/src/KaxSemantic.cpp
curl -o KaxSemantic.h https://raw.githubusercontent.com/Matroska-Org/libmatroska/master/matroska/KaxSemantic.h
- name: Generate libmatroska artifacts
uses: actions/upload-artifact@v3
with:
name: libmatroska-semantic
path: _build
- name: Verify libmatroska semantic
run: |
diff -pur _build/matroska/KaxSemantic.h KaxSemantic.h || exit 1
diff -pur _build/src/KaxSemantic.cpp KaxSemantic.cpp || exit 1