-
-
Notifications
You must be signed in to change notification settings - Fork 5
150 lines (132 loc) · 4.92 KB
/
ci.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: ci
on:
push:
branches:
- main
paths:
- "**.py"
- "**.css"
- "**.js"
- "**.json"
- "**.xml"
- "**/poxy/data/*"
- "**/workflows/**.yaml"
- "pyproject.toml"
pull_request:
branches:
- main
paths:
- "**.py"
- "**.css"
- "**.js"
- "**.json"
- "**.xml"
- "**/poxy/data/*"
- "**/workflows/**.yaml"
- "pyproject.toml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
strategy:
fail-fast: false
matrix:
compiler:
- "clang"
linker:
- "lld"
doxygen_tag:
#- "Release_1_8_17"
#- "Release_1_8_18"
#- "Release_1_8_19"
#- "Release_1_8_20"
#- "Release_1_9_0"
#- "Release_1_9_1"
#- "Release_1_9_2"
#- "Release_1_9_3"
#- "Release_1_9_4"
#- "Release_1_9_5"
#- "Release_1_9_6"
- "none"
os:
- "ubuntu-22.04"
- "ubuntu-20.04"
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runs-on: "${{ matrix.os }}"
defaults:
run:
shell: bash
steps:
- name: Install base dependencies
run: |
sudo apt -y update
sudo apt -y install --no-install-recommends git
- name: Install python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip build setuptools wheel
- name: Install compiler dependencies
if: ${{ matrix.doxygen_tag != 'none' }}
run: |
sudo apt -y install --no-install-recommends cmake flex bison
- name: Install lld
if: ${{ matrix.doxygen_tag != 'none' && startsWith(matrix.linker, 'lld') }}
run: |
sudo apt -y install --no-install-recommends lld
- name: Install clang
if: ${{ matrix.doxygen_tag != 'none' && startsWith(matrix.compiler, 'clang') }}
run: |
sudo apt -y install --no-install-recommends clang
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 1000
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 1000
- name: Install gcc
if: ${{ matrix.doxygen_tag != 'none' && startsWith(matrix.compiler, 'gcc') }}
run: |
sudo apt -y install --no-install-recommends gcc g++
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 1000
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 1000
- uses: actions/checkout@v3
with:
path: repo
- name: Install poxy
run: |
cd "${{ github.workspace }}/repo"
python -m pip install --upgrade .
- name: Print poxy help and version
run: |
poxy --help
poxy --version
- name: Build and install doxygen from source
if: ${{ matrix.doxygen_tag != 'none' }}
run: |
cd "${{ github.workspace }}"
git clone --depth 1 --branch ${{ matrix.doxygen_tag }} https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
CC=cc CC_LD=${{ matrix.linker }} CXX=c++ CXX_LD=${{ matrix.linker }} cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=MinSizeRel ..
CC=cc CC_LD=${{ matrix.linker }} CXX=c++ CXX_LD=${{ matrix.linker }} make -j
CC=cc CC_LD=${{ matrix.linker }} CXX=c++ CXX_LD=${{ matrix.linker }} sudo make install
- name: Install doxygen from apt
if: ${{ matrix.doxygen_tag == 'none' }}
run: |
sudo apt -y install doxygen
doxygen --version
poxy --doxygen-version
- name: Run poxy on test_project
run: |
cd "${{ github.workspace }}/repo/tests/test_project"
poxy
poxy --xml
poxy --verbose
poxy --bug-report