-
Notifications
You must be signed in to change notification settings - Fork 171
86 lines (73 loc) · 2.19 KB
/
buildcheck.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
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
85
86
name: Standard Build Check
on:
push:
pull_request:
workflow_dispatch:
inputs:
vss-version:
required: false
type: string
workflow_call:
inputs:
vss-version:
required: false
type: string
env:
PYTHON_VERSION: "3.10.6" # keep in sync with vss-tools
# Note: Currently cyclonedds does not support 3.11
jobs:
buildtest:
name: Build Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install vss-tools dependencies
run: |
python -V
python -m pip --quiet --no-input install --upgrade pip
python -m pip --quiet --no-input install --upgrade wheel
./scripts/install_vss_tools.sh
echo done!
- name: Test mandatory targets
run: |
if [ "${{ inputs.vss-version }}" != "" ]; then
export VSS_VERSION="${{ inputs.vss-version }}"
fi
make mandatory_targets
- name: "Uploading artifacts"
uses: actions/upload-artifact@v4
with:
name: vss-artifacts
# Listing all artifacts that shall be managed as release artifacts
path: |
vss.csv
vss.fidl
vss.grapql.ts
vss.idl
vss.json
vss.jsonschema
vss.yaml
vss_noexpand.json
vss_samm.tar.gz
vss_apigear.tar.gz
if-no-files-found: error
- name: Test that ddsidl is correct
run: |
pip install cyclonedds
idlc vss*.idl
- name: Prepare for CSV check
uses: actions/setup-go@v5
with:
go-version: 'stable'
cache: false
- name: Test that CSV generated by vss-tools is correct
run: |
# Install csvlint to check compliance with https://datatracker.ietf.org/doc/html/rfc4180
go install github.com/Clever/csvlint/cmd/csvlint@latest
csvlint vss*.csv
- name: Test optional targets. NOTE - always succeeds
run: |
make -k optional_targets || true