forked from yamcs/yamcs
-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (93 loc) · 2.67 KB
/
main.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
87
88
89
90
91
92
93
94
95
96
97
98
name: CI
on: [push, pull_request]
jobs:
java:
name: Java ${{ matrix.platform }} ${{ matrix.java }}
runs-on: ${{ matrix.platform }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
java: ["17", "21"]
platform: [ubuntu-latest]
mvn_opts: ["-Dsurefire.useFile=false"]
experimental: [false]
include:
- platform: macos-latest
java: "17"
mvn_opts: "-Dsurefire.useFile=false"
experimental: true
- platform: windows-latest
java: "17"
mvn_opts: '"-Dsurefire.useFile=false"'
experimental: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Run test suite
run: mvn -B --no-transfer-progress ${{ matrix.mvn_opts }} test
- uses: actions/upload-artifact@v4
if: failure()
with:
name: errdump
path: |
yamcs-core/hs_err*
yamcs-core/target/surefire-reports/*.dump*
tests/hs_err*
tests/target/surefire-reports/*.dump*
javadoc:
name: Javadoc ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: ["17", "21"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Generate javadoc
run: mvn -B --no-transfer-progress -DskipTests javadoc:aggregate
web:
name: Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up webapp
run: cd yamcs-web/src/main/webapp; npm install
- name: Build webapp
run: cd yamcs-web/src/main/webapp; npm run build
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Generate protobin
run: mvn -B --no-transfer-progress -DskipTests compile
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up sphinx
run: |
cd docs
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate HTTP API documentation
run: |
cd docs/http-api
make html
- name: Generate Server Manual
run: |
cd docs/server-manual
make man html