|
9 | 9 | tests: |
10 | 10 | name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }} |
11 | 11 | runs-on: ${{ matrix.os }} |
12 | | - |
13 | 12 | strategy: |
14 | 13 | fail-fast: false |
15 | 14 | matrix: |
16 | 15 | include: |
17 | | - - os: ubuntu-20.04 |
| 16 | + - os: ubuntu-22.04 |
| 17 | + arch: x86_64 |
| 18 | + compiler: gcc |
| 19 | + version: "11" |
| 20 | + python-version: "3.10" |
| 21 | + castxml: "castxml" |
| 22 | + castxml-epic: 0 |
| 23 | + cppstd: "-std=c++17" |
| 24 | + |
| 25 | + - os: ubuntu-22.04 |
| 26 | + arch: x86_64 |
| 27 | + compiler: gcc |
| 28 | + version: "11" |
| 29 | + python-version: "3.10" |
| 30 | + castxml: "castxml" |
| 31 | + castxml-epic: 0 |
| 32 | + cppstd: "-std=c++17" |
| 33 | + |
| 34 | + - os: ubuntu-22.04 |
| 35 | + arch: x86_64 |
| 36 | + compiler: gcc |
| 37 | + version: "11" |
| 38 | + python-version: "3.10" |
| 39 | + castxml: "castxml" |
| 40 | + castxml-epic: 0 |
| 41 | + cppstd: "-std=c++17" |
| 42 | + |
| 43 | + - os: ubuntu-22.04 |
| 44 | + arch: x86_64 |
| 45 | + compiler: gcc |
| 46 | + version: "11" |
| 47 | + python-version: "3.10" |
| 48 | + castxml: "castxml" |
| 49 | + castxml-epic: 0 |
| 50 | + cppstd: "-std=c++17" |
| 51 | + |
| 52 | + - os: ubuntu-22.04 |
| 53 | + arch: x86_64 |
18 | 54 | compiler: gcc |
19 | | - version: "9" |
20 | | - python-version: "3.7" |
| 55 | + version: "11" |
| 56 | + python-version: "3.11" |
21 | 57 | castxml: "castxml" |
22 | 58 | castxml-epic: 0 |
23 | | - cppstd: "-std=c++98" |
| 59 | + cppstd: "-std=c++17" |
24 | 60 |
|
25 | | - - os: ubuntu-20.04 |
| 61 | + - os: ubuntu-22.04 |
| 62 | + arch: x86_64 |
26 | 63 | compiler: gcc |
27 | | - version: "9" |
28 | | - python-version: "3.8" |
| 64 | + version: "11" |
| 65 | + python-version: "3.10" |
| 66 | + castxml: "castxml" |
| 67 | + castxml-epic: 1 |
| 68 | + cppstd: "-std=c++17" |
| 69 | + |
| 70 | + - os: ubuntu-22.04 |
| 71 | + arch: x86_64 |
| 72 | + compiler: gcc |
| 73 | + version: "11" |
| 74 | + python-version: "3.10" |
| 75 | + castxml: "castxml" |
| 76 | + castxml-epic: 1 |
| 77 | + cppstd: "-std=c++11" |
| 78 | + |
| 79 | + - os: ubuntu-22.04-arm64 |
| 80 | + arch: aarch64 |
| 81 | + compiler: gcc |
| 82 | + version: "11" |
| 83 | + python-version: "3.10" |
29 | 84 | castxml: "castxml" |
30 | 85 | castxml-epic: 0 |
31 | | - cppstd: "-std=c++98" |
| 86 | + cppstd: "-std=c++17" |
32 | 87 |
|
33 | | - - os: ubuntu-20.04 |
| 88 | + - os: ubuntu-22.04-arm64 |
| 89 | + arch: aarch64 |
34 | 90 | compiler: gcc |
35 | | - version: "9" |
36 | | - python-version: "3.9" |
| 91 | + version: "11" |
| 92 | + python-version: "3.10" |
37 | 93 | castxml: "castxml" |
38 | 94 | castxml-epic: 0 |
39 | | - cppstd: "-std=c++98" |
| 95 | + cppstd: "-std=c++17" |
40 | 96 |
|
41 | | - - os: ubuntu-20.04 |
| 97 | + - os: ubuntu-22.04-arm64 |
| 98 | + arch: aarch64 |
42 | 99 | compiler: gcc |
43 | | - version: "9" |
| 100 | + version: "11" |
44 | 101 | python-version: "3.10" |
45 | 102 | castxml: "castxml" |
46 | 103 | castxml-epic: 0 |
47 | | - cppstd: "-std=c++98" |
| 104 | + cppstd: "-std=c++17" |
48 | 105 |
|
49 | | - - os: ubuntu-20.04 |
| 106 | + - os: ubuntu-22.04-arm64 |
| 107 | + arch: aarch64 |
50 | 108 | compiler: gcc |
51 | | - version: "9" |
| 109 | + version: "11" |
52 | 110 | python-version: "3.11" |
53 | 111 | castxml: "castxml" |
54 | 112 | castxml-epic: 0 |
55 | | - cppstd: "-std=c++98" |
| 113 | + cppstd: "-std=c++17" |
56 | 114 |
|
57 | | - - os: ubuntu-20.04 |
| 115 | + - os: ubuntu-22.04-arm64 |
| 116 | + arch: aarch64 |
58 | 117 | compiler: gcc |
59 | | - version: "9" |
60 | | - python-version: "3.8" |
| 118 | + version: "11" |
| 119 | + python-version: "3.10" |
61 | 120 | castxml: "castxml" |
62 | 121 | castxml-epic: 1 |
63 | | - cppstd: "-std=c++98" |
| 122 | + cppstd: "-std=c++17" |
64 | 123 |
|
65 | | - - os: ubuntu-20.04 |
| 124 | + - os: ubuntu-22.04-arm64 |
| 125 | + arch: aarch64 |
66 | 126 | compiler: gcc |
67 | | - version: "9" |
68 | | - python-version: "3.8" |
| 127 | + version: "11" |
| 128 | + python-version: "3.10" |
69 | 129 | castxml: "castxml" |
70 | 130 | castxml-epic: 1 |
71 | 131 | cppstd: "-std=c++11" |
72 | 132 |
|
73 | | - - os: macos-13 |
| 133 | + - os: ubuntu-24.04-arm64 |
| 134 | + arch: aarch64 |
| 135 | + compiler: gcc |
| 136 | + version: "14" |
| 137 | + python-version: "3.12" |
| 138 | + castxml: "castxml" |
| 139 | + castxml-epic: 0 |
| 140 | + cppstd: "-std=c++17" |
| 141 | + |
| 142 | + - os: ubuntu-24.04-arm64 |
| 143 | + arch: aarch64 |
| 144 | + compiler: gcc |
| 145 | + version: "14" |
| 146 | + python-version: "3.12" |
| 147 | + castxml: "castxml" |
| 148 | + castxml-epic: 0 |
| 149 | + cppstd: "-std=c++17" |
| 150 | + |
| 151 | + - os: ubuntu-24.04-arm64 |
| 152 | + arch: aarch64 |
| 153 | + compiler: gcc |
| 154 | + version: "14" |
| 155 | + python-version: "3.12" |
| 156 | + castxml: "castxml" |
| 157 | + castxml-epic: 0 |
| 158 | + cppstd: "-std=c++17" |
| 159 | + |
| 160 | + - os: ubuntu-24.04-arm64 |
| 161 | + arch: aarch64 |
| 162 | + compiler: gcc |
| 163 | + version: "14" |
| 164 | + python-version: "3.12" |
| 165 | + castxml: "castxml" |
| 166 | + castxml-epic: 0 |
| 167 | + cppstd: "-std=c++17" |
| 168 | + |
| 169 | + - os: ubuntu-24.04-arm64 |
| 170 | + arch: aarch64 |
| 171 | + compiler: gcc |
| 172 | + version: "14" |
| 173 | + python-version: "3.12" |
| 174 | + castxml: "castxml" |
| 175 | + castxml-epic: 0 |
| 176 | + cppstd: "-std=c++17" |
| 177 | + |
| 178 | + - os: ubuntu-24.04-arm64 |
| 179 | + arch: aarch64 |
| 180 | + compiler: gcc |
| 181 | + version: "14" |
| 182 | + python-version: "3.12" |
| 183 | + castxml: "castxml" |
| 184 | + castxml-epic: 1 |
| 185 | + cppstd: "-std=c++17" |
| 186 | + |
| 187 | + - os: ubuntu-24.04-arm64 |
| 188 | + arch: aarch64 |
| 189 | + compiler: gcc |
| 190 | + version: "14" |
| 191 | + python-version: "3.12" |
| 192 | + castxml: "castxml" |
| 193 | + castxml-epic: 1 |
| 194 | + cppstd: "-std=c++17" |
| 195 | + |
| 196 | + - os: macos-15 |
| 197 | + arch: x86_64 |
74 | 198 | compiler: xcode |
75 | 199 | version: "default" |
76 | | - python-version: "3.8" |
| 200 | + python-version: "3.10" |
77 | 201 | castxml: "castxml" |
78 | 202 | castxml-epic: 0 |
79 | | - cppstd: "-std=c++98" |
| 203 | + cppstd: "-std=c++17" |
80 | 204 |
|
| 205 | + - os: macos-15 |
| 206 | + arch: arm64 |
| 207 | + compiler: xcode |
| 208 | + version: "default" |
| 209 | + python-version: "3.12" |
| 210 | + castxml: "castxml" |
| 211 | + castxml-epic: 0 |
| 212 | + cppstd: "-std=c++17" |
81 | 213 | steps: |
82 | | - - uses: actions/checkout@v3 |
| 214 | + - uses: actions/checkout@v4 |
| 215 | + |
83 | 216 | - name: Set up Python ${{ matrix.python-version }} |
84 | 217 | uses: actions/setup-python@v4 |
85 | 218 | with: |
86 | 219 | python-version: ${{ matrix.python-version }} |
| 220 | + |
87 | 221 | - name: Display Python version |
88 | 222 | run: python -c "import sys; print(sys.version)" |
| 223 | + |
89 | 224 | - name: Install Python lib and test libs |
90 | 225 | run: | |
91 | 226 | pip install '.[test]' |
| 227 | + |
92 | 228 | - name: Run pycodestyle |
93 | 229 | run: pycodestyle . --exclude=docs |
94 | | - - name: Setup castxml for Linux |
95 | | - if: matrix.os == 'ubuntu-20.04' && matrix.castxml == 'castxml' |
| 230 | + |
| 231 | + # ─── Setup CastXML para Linux ─────────────────────────────────── |
| 232 | + - name: Setup CastXML for Linux x86_64 (Ubuntu 22.04) |
| 233 | + if: matrix.os == 'ubuntu-22.04' |
96 | 234 | run: | |
97 | | - wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/bdbb67a10c5f8d1b738cd19cb074f409d4803e8077cb8c1072ef4eaf738fa871a73643f9c8282d58cae28d188df842c82ad6620b6d590b0396a0172a27438dce/download | tar zxf - -C ~/ |
98 | | - - name: Setup castxml for Mac |
99 | | - if: matrix.os == 'macos-13' |
| 235 | + wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-22.04-x86_64.zip |
| 236 | + mkdir -p ~/castxml-temp |
| 237 | + unzip -q castxml-ubuntu-22.04-x86_64.zip -d ~/castxml-temp |
| 238 | + tar -xzf ~/castxml-temp/castxml-ubuntu-22.04-x86_64.tar.gz -C ~/castxml-temp |
| 239 | + mv ~/castxml-temp/castxml-ubuntu-22.04-x86_64 ~/castxml |
| 240 | + chmod +x ~/castxml/castxml |
| 241 | + rm -rf ~/castxml-temp |
| 242 | +
|
| 243 | + - name: Setup CastXML for Linux x86_64 (Ubuntu 24.04) |
| 244 | + if: matrix.os == 'ubuntu-24.04' |
| 245 | + run: | |
| 246 | + wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-24.04-x86_64.zip |
| 247 | + mkdir -p ~/castxml-temp |
| 248 | + unzip -q castxml-ubuntu-24.04-x86_64.zip -d ~/castxml-temp |
| 249 | + tar -xzf ~/castxml-temp/castxml-ubuntu-24.04-x86_64.tar.gz -C ~/castxml-temp |
| 250 | + mv ~/castxml-temp/castxml-ubuntu-24.04-x86_64 ~/castxml |
| 251 | + chmod +x ~/castxml/castxml |
| 252 | + rm -rf ~/castxml-temp |
| 253 | +
|
| 254 | + # ─── Setup CastXML para Linux ARM64 ────────────────────────────── |
| 255 | + - name: Setup CastXML for Linux ARM64 (Ubuntu 22.04) |
| 256 | + if: matrix.os == 'ubuntu-22.04-arm64' |
| 257 | + run: | |
| 258 | + wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-22.04-arm-aarch64.zip |
| 259 | + mkdir -p ~/castxml-temp |
| 260 | + unzip -q castxml-ubuntu-22.04-arm-aarch64.zip -d ~/castxml-temp |
| 261 | + tar -xzf ~/castxml-temp/castxml-ubuntu-22.04-arm-aarch64.tar.gz -C ~/castxml-temp |
| 262 | + mv ~/castxml-temp/castxml-ubuntu-22.04-arm-aarch64 ~/castxml |
| 263 | + chmod +x ~/castxml/castxml |
| 264 | + rm -rf ~/castxml-temp |
| 265 | +
|
| 266 | + - name: Setup CastXML for Linux ARM64 (Ubuntu 24.04) |
| 267 | + if: matrix.os == 'ubuntu-24.04-arm64' |
100 | 268 | run: | |
101 | | - wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/5d937e938f7b882a3a3e7941e68f8312d0898aaf2082e00003dd362b1ba70b98b0a08706a1be28e71652a6a0f1e66f89768b5eaa20e5a100592d5b3deefec3f0/download | tar zxf - -C ~/ |
| 269 | + wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-24.04-arm-aarch64.zip |
| 270 | + mkdir -p ~/castxml-temp |
| 271 | + unzip -q castxml-ubuntu-24.04-arm-aarch64.zip -d ~/castxml-temp |
| 272 | + tar -xzf ~/castxml-temp/castxml-ubuntu-24.04-arm-aarch64.tar.gz -C ~/castxml-temp |
| 273 | + mv ~/castxml-temp/castxml-ubuntu-24.04-arm-aarch64 ~/castxml |
| 274 | + chmod +x ~/castxml/castxml |
| 275 | + rm -rf ~/castxml-temp |
| 276 | +
|
| 277 | + # ─── Setup CastXML para macOS ───────────────────────────────────── |
| 278 | + - name: Setup CastXML for macOS (x86_64) |
| 279 | + if: matrix.os == 'macos-15' && matrix.arch == 'x86_64' |
| 280 | + run: | |
| 281 | + wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-macos-15-x86_64.zip |
| 282 | + mkdir -p ~/castxml-temp |
| 283 | + unzip -q castxml-macos-15-x86_64.zip -d ~/castxml-temp |
| 284 | + tar -xzf ~/castxml-temp/castxml-macos-15-x86_64.tar.gz -C ~/castxml-temp |
| 285 | + mv ~/castxml-temp/castxml-macos-15-x86_64 ~/castxml |
| 286 | + chmod +x ~/castxml/castxml |
| 287 | + rm -rf ~/castxml-temp |
| 288 | +
|
| 289 | + - name: Setup CastXML for macOS (ARM) |
| 290 | + if: matrix.os == 'macos-15' && matrix.arch == 'arm64' |
| 291 | + run: | |
| 292 | + wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-macos-15-arm64.zip |
| 293 | + mkdir -p ~/castxml-temp |
| 294 | + unzip -q castxml-macos-15-arm64.zip -d ~/castxml-temp |
| 295 | + tar -xzf ~/castxml-temp/castxml-macos-15-arm64.tar.gz -C ~/castxml-temp |
| 296 | + mv ~/castxml-temp/castxml-macos-15-arm64 ~/castxml |
| 297 | + chmod +x ~/castxml/castxml |
| 298 | + rm -rf ~/castxml-temp |
| 299 | +
|
102 | 300 | - name: Run tests |
103 | 301 | run: | |
104 | | - export PATH=~/castxml/bin:$PATH |
| 302 | + export PATH=~/castxml:$PATH |
105 | 303 | pytest tests |
0 commit comments