-
Notifications
You must be signed in to change notification settings - Fork 27
59 lines (46 loc) · 1.5 KB
/
build_linux_xml.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Linux Xml
on:
workflow_call:
jobs:
xml:
strategy:
fail-fast: false
matrix:
include:
- { os: "ubuntu-20.04" }
- { os: "ubuntu-22.04" }
runs-on: ${{matrix.os}}
name: ${{matrix.os}}
steps:
- name: "Set up environment"
run: |
echo "XMLLINT_ENABLED=1" >> ${GITHUB_ENV}
- name: Apt update # with workaround for 'Unable to connect to ppa.launchpad.net' failure
run: sudo apt-get update --option Acquire::Retries=100 --option Acquire::http::Timeout="300"
- name: Set up Java 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "8"
- name: Install XML validator (xmllint)
run: sudo apt-get install libxml2-utils
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
- name: Download Zserio release artifact
uses: actions/download-artifact@v4
with:
name: zserio-bin-java8
- name: Run Zserio tests
run: |
scripts/test.sh xml
- name: Run Zserio tests with extra arguments
run: |
export ZSERIO_EXTRA_ARGS="-withTypeInfoCode -withCodeComments"
scripts/test.sh -p -i arguments/without_writer_code xml
export ZSERIO_EXTRA_ARGS="${ZSERIO_EXTRA_ARGS} -withValidationCode -withRangeCheckCode"
scripts/test.sh -p -x arguments/without_writer_code xml
- name: Run Zserio integration tests for repeated generation
run: |
scripts/test_gen.sh xml