Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [ x86_64 ]
include:
# UBUNTU 22.04 - CASTXML EPIC 0
- os: ubuntu-22.04
Expand All @@ -21,7 +22,7 @@ jobs:
python-version: "3.13"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-22.04
compiler: clang++
clang-version: 14
Expand All @@ -42,7 +43,7 @@ jobs:
python-version: "3.13"
castxml-epic: 1
cppstd: "-std=c++98"

# UBUNTU 24.04 - CASTXML EPIC 0
- os: ubuntu-24.04
compiler: clang++
Expand Down Expand Up @@ -152,14 +153,26 @@ jobs:
echo "compiler_path=/usr/bin/${{ matrix.compiler }}-${{ matrix.clang-version }}" >> tests/xml_generator.cfg
echo "ccflags=${{ matrix.cppstd }}" >> tests/xml_generator.cfg

- name: Setup castxml for Linux
if: contains(matrix.os, 'ubuntu')
# ─── Setup CastXML for Linux x86_64 ──────────────────────────────
- name: Setup CastXML for Linux x86_64 (Ubuntu 24.04)
if: matrix.os == 'ubuntu-24.04' && matrix.arch == 'x86_64'
run: |
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/bdbb67a10c5f8d1b738cd19cb074f409d4803e8077cb8c1072ef4eaf738fa871a73643f9c8282d58cae28d188df842c82ad6620b6d590b0396a0172a27438dce/download | tar zxf - -C ~/
wget -q -O ~/castxml-ubuntu-24.04-x86_64.tar.gz https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11.post1/castxml-ubuntu-24.04-x86_64.tar.gz
tar -xzf ~/castxml-ubuntu-24.04-x86_64.tar.gz -C ~/
chmod +x ~/castxml/bin/castxml

- name: Setup CastXML for Linux x86_64 (Ubuntu 22.04)
if: matrix.os == 'ubuntu-22.04' && matrix.arch == 'x86_64'
run: |
wget -q -O ~/castxml-ubuntu-22.04-x86_64.tar.gz https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11.post1/castxml-ubuntu-22.04-x86_64.tar.gz
tar -xzf ~/castxml-ubuntu-22.04-x86_64.tar.gz -C ~/
chmod +x ~/castxml/bin/castxml

- name: Setup castxml for Mac
if: contains(matrix.os, 'macos')
run: |
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/5d937e938f7b882a3a3e7941e68f8312d0898aaf2082e00003dd362b1ba70b98b0a08706a1be28e71652a6a0f1e66f89768b5eaa20e5a100592d5b3deefec3f0/download | tar zxf - -C ~/

- name: Run tests
run: |
export PATH=~/castxml/bin:$PATH
Expand Down