Skip to content

Commit 2ea1ad8

Browse files
committed
tests.yml
1 parent daa8a08 commit 2ea1ad8

File tree

1 file changed

+32
-14
lines changed

1 file changed

+32
-14
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,42 +202,60 @@ jobs:
202202
203203
- name: Run pycodestyle
204204
run: pycodestyle . --exclude=docs
205-
206-
# ─── Setup castxml for Linux x86_64 ─────────────────────────────
207-
- name: Setup castxml for Linux x86_64 (Ubuntu 22.04)
205+
206+
# ─── Setup CastXML for Linux x86_64 ─────────────────────────────
207+
- name: Setup CastXML for Linux x86_64 (Ubuntu 22.04)
208208
if: matrix.os == 'ubuntu-22.04'
209209
run: |
210210
wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-22.04-x86_64.zip
211211
unzip -q castxml-ubuntu-22.04-x86_64.zip -d ~/
212-
- name: Setup castxml for Linux x86_64 (Ubuntu 24.04)
212+
# The zip contains an inner archive (a .tar.gz file); extract it:
213+
tar -xzf ~/castxml-ubuntu-22.04-x86_64.tar.gz -C ~/
214+
# Rename or move the extracted folder to a known location
215+
mv ~/castxml-ubuntu-22.04-x86_64 ~/castxml
216+
217+
- name: Setup CastXML for Linux x86_64 (Ubuntu 24.04)
213218
if: matrix.os == 'ubuntu-24.04'
214219
run: |
215220
wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-24.04-x86_64.zip
216221
unzip -q castxml-ubuntu-24.04-x86_64.zip -d ~/
217-
218-
# ─── Setup castxml for Linux arm64/aarch64 ───────────────────────
219-
- name: Setup castxml for Linux arm64/aarch64 (Ubuntu 22.04)
222+
tar -xzf ~/castxml-ubuntu-24.04-x86_64.tar.gz -C ~/
223+
mv ~/castxml-ubuntu-24.04-x86_64 ~/castxml
224+
225+
# ─── Setup CastXML for Linux ARM64/aarch64 ─────────────────────────
226+
- name: Setup CastXML for Linux ARM64 (Ubuntu 22.04)
220227
if: matrix.os == 'ubuntu-22.04-arm64'
221228
run: |
222229
wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-22.04-arm-aarch64.zip
223230
unzip -q castxml-ubuntu-22.04-arm-aarch64.zip -d ~/
224-
- name: Setup castxml for Linux arm64/aarch64 (Ubuntu 24.04)
231+
tar -xzf ~/castxml-ubuntu-22.04-arm-aarch64.tar.gz -C ~/
232+
mv ~/castxml-ubuntu-22.04-arm-aarch64 ~/castxml
233+
234+
- name: Setup CastXML for Linux ARM64 (Ubuntu 24.04)
225235
if: matrix.os == 'ubuntu-24.04-arm64'
226236
run: |
227237
wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-ubuntu-24.04-arm-aarch64.zip
228238
unzip -q castxml-ubuntu-24.04-arm-aarch64.zip -d ~/
229-
230-
# ─── Setup castxml for macOS ──────────────────────────────────────
231-
- name: Setup castxml for Mac x86_64
232-
if: matrix.os == 'macos-15' && matrix.arch == 'x86_64'
239+
tar -xzf ~/castxml-ubuntu-24.04-arm-aarch64.tar.gz -C ~/
240+
mv ~/castxml-ubuntu-24.04-arm-aarch64 ~/castxml
241+
242+
# ─── Setup CastXML for macOS ──────────────────────────────────────
243+
# For macOS, we assume different runners may need different binaries.
244+
- name: Setup CastXML for macOS (x86_64)
245+
if: matrix.os == 'macos-13'
233246
run: |
234247
wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-macos-15-x86_64.zip
235248
unzip -q castxml-macos-15-x86_64.zip -d ~/
236-
- name: Setup castxml for Mac ARM
237-
if: matrix.os == 'macos-15' && matrix.arch == 'arm64'
249+
tar -xzf ~/castxml-macos-15-x86_64.tar.gz -C ~/
250+
mv ~/castxml-macos-15-x86_64 ~/castxml
251+
252+
- name: Setup CastXML for macOS (ARM)
253+
if: matrix.os == 'macos-15'
238254
run: |
239255
wget -q https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-macos-15-arm64.zip
240256
unzip -q castxml-macos-15-arm64.zip -d ~/
257+
tar -xzf ~/castxml-macos-15-arm64.tar.gz -C ~/
258+
mv ~/castxml-macos-15-arm64 ~/castxml
241259
242260
- name: Run tests
243261
run: |

0 commit comments

Comments
 (0)