Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/topology-tool-kit/ttk into m…
Browse files Browse the repository at this point in the history
…pi_fix_2D
  • Loading branch information
julien-tierny committed Dec 13, 2024
2 parents 583e5f5 + 1e9a425 commit 844d718
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 48 deletions.
12 changes: 8 additions & 4 deletions .github/actions/test-ttk-unix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ runs:
- name: Test Python example
shell: bash
run: |
cd $GITHUB_WORKSPACE/examples/python
python3 example.py ../data/inputData.vtu
if [ "${{ matrix.os }}" != "macos-13" ] && [ "${{ matrix.os }}" != "macos-14" ] && [ "${{ matrix.os }}" != "macos-15" ]; then
cd $GITHUB_WORKSPACE/examples/python
python3 example.py ../data/inputData.vtu
fi
- name: Test pvpython example
shell: bash
run: |
cd $GITHUB_WORKSPACE/examples/pvpython
pvpython example.py ../data/inputData.vtu
if [ "${{ matrix.os }}" != "macos-13" ] && [ "${{ matrix.os }}" != "macos-14" ] && [ "${{ matrix.os }}" != "macos-15" ]; then
cd $GITHUB_WORKSPACE/examples/pvpython
pvpython example.py ../data/inputData.vtu
fi
- name: Test standalone
shell: bash
Expand Down
39 changes: 18 additions & 21 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-14]
os: [macos-13, macos-14, macos-15]
env:
DYLD_LIBRARY_PATH: /usr/local/lib

Expand All @@ -207,14 +207,8 @@ jobs:

- name: Fetch & install TTK-ParaView
run: |
if [[ "${{ matrix.os }}" == "macos-12" ]]; then
wget https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}.tar.gz
tar xzf ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}.tar.gz
fi
if [[ "${{ matrix.os }}" == "macos-14" ]]; then
wget https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}-arm64.tar.gz
tar xzf ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}-arm64.tar.gz
fi
wget https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}.tar.gz
tar xzf ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}.tar.gz
sudo cp -r ttk-paraview/* /usr/local
pvpython -m pip install --break-system-packages scikit-learn
Expand Down Expand Up @@ -266,7 +260,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-14]
os: [macos-13, macos-14, macos-15]
env:
DYLD_LIBRARY_PATH: /usr/local/lib
steps:
Expand All @@ -289,12 +283,7 @@ jobs:
- name: Fetch TTK-ParaView
run: |
if [[ "${{ matrix.os }}" == "macos-12" ]]; then
wget -O ttk-paraview.tar.gz https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}.tar.gz
fi
if [[ "${{ matrix.os }}" == "macos-14" ]]; then
wget -O ttk-paraview.tar.gz https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}-arm64.tar.gz
fi
wget -O ttk-paraview.tar.gz https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-${{ env.PV_TAG }}-${{ matrix.os }}.tar.gz
- name: Fetch TTK .tar.gz artifact
Expand All @@ -316,7 +305,7 @@ jobs:
echo "CXX=$(brew --prefix llvm)/bin/clang++" >> $GITHUB_ENV
echo "CMAKE_PREFIX_PATH=$(brew --prefix qt@5)/lib/cmake:$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
# pvpython does not embed the correct PYTHONPATH
echo "PYTHONPATH=/usr/local/lib/python3.12/site-packages:$PYTHONPATH" >> $GITHUB_ENV
echo "PYTHONPATH=/usr/local/lib/python3.13/site-packages:$PYTHONPATH" >> $GITHUB_ENV
- name: Run TTK tests
uses: ./.github/actions/test-ttk-unix
Expand Down Expand Up @@ -659,21 +648,29 @@ jobs:
file: ttk-ubuntu-24.04.deb/ttk.deb
asset_name: ttk-$tag-ubuntu-24.04.deb

- name: Upload MacOS 12 binary archives as Release Asset
- name: Upload MacOS 13 binary archives as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-macos-12.tar.gz/ttk.tar.gz
asset_name: ttk-$tag-macos-12.tar.gz
file: ttk-macos-13.tar.gz/ttk.tar.gz
asset_name: ttk-$tag-macos-13.tar.gz

- name: Upload MacOS 14 binary archives as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-macos-14.tar.gz/ttk.tar.gz
asset_name: ttk-$tag-macos-14-arm64.tar.gz
asset_name: ttk-$tag-macos-14.tar.gz

- name: Upload MacOS 15 binary archives as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-macos-15.tar.gz/ttk.tar.gz
asset_name: ttk-$tag-macos-15.tar.gz

- name: Upload Windows .exe as Release Asset
uses: svenstaro/upload-release-action@v2
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-14]
os: [macos-13, macos-14, macos-15]
if: ${{ github.repository_owner == 'topology-tool-kit' || !contains(github.ref, 'heads') }}
env:
DYLD_LIBRARY_PATH: /usr/local/lib
Expand Down Expand Up @@ -303,14 +303,8 @@ jobs:

- name: Fetch TTK-ParaView headless macOS binary archive
run: |
if [[ "${{ matrix.os }}" == "macos-12" ]]; then
wget -O ttk-paraview-headless.tar.gz \
https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-headless-${{ matrix.os }}.tar.gz
fi
if [[ "${{ matrix.os }}" == "macos-14" ]]; then
wget -O ttk-paraview-headless.tar.gz \
https://github.com/${{ env.PV_REPO }}/releases/download/${{ env.PV_TAG }}/ttk-paraview-headless-${{ matrix.os }}-arm64.tar.gz
fi
- name: Install ParaView
run: |
Expand Down Expand Up @@ -358,7 +352,7 @@ jobs:
- name: Set PYTHONPATH for macOS pvpython
run: |
# pvpython does not embed the correct PYTHONPATH
echo "PYTHONPATH=/usr/local/lib/python3.12/site-packages:$PYTHONPATH" >> $GITHUB_ENV
echo "PYTHONPATH=/usr/local/lib/python3.13/site-packages:$PYTHONPATH" >> $GITHUB_ENV
- name: Run TTK tests
uses: ./.github/actions/test-ttk-unix
Expand Down Expand Up @@ -394,7 +388,8 @@ jobs:
path: ttk-data/tests/screenshots.tar.gz
retention-days: 10

- name: Run ttk-data Python scripts
- name: Run ttk-data Python scripts [TEMPORARILY NOT ENFORCED]
continue-on-error: true
run: |
cd ttk-data
# remove buggy example
Expand Down
23 changes: 15 additions & 8 deletions paraview/patch/headless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-14]
os: [macos-13, macos-14, macos-15]
env:
CCACHE_DIR: /Users/runner/work/ttk/.ccache
CCACHE_MAXSIZE: 200M
Expand All @@ -90,14 +90,14 @@ jobs:
# ParaView dependencies
brew reinstall python
brew install --cask xquartz
brew install ninja open-mpi
brew install ninja
- name: Create & configure ParaView build directory
run: |
mkdir build && cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DPARAVIEW_USE_MPI=ON \
-DPARAVIEW_USE_MPI=OFF \
-DPARAVIEW_USE_QT=OFF \
-GNinja \
$GITHUB_WORKSPACE
Expand Down Expand Up @@ -240,22 +240,29 @@ jobs:
file: ttk-paraview-headless-ubuntu-24.04/ttk-paraview.deb
asset_name: ttk-paraview-headless-ubuntu-24.04.deb

- name: Upload MacOS 15 .tar.gz as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-paraview-headless-macos-15/ttk-paraview.tar.gz
asset_name: ttk-paraview-headless-macos-15.tar.gz

- name: Upload MacOS 14 (arm64) .tar.gz as Release Asset
- name: Upload MacOS 14 .tar.gz as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-paraview-headless-macos-14/ttk-paraview.tar.gz
asset_name: ttk-paraview-headless-macos-14-arm64.tar.gz
asset_name: ttk-paraview-headless-macos-14.tar.gz

- name: Upload MacOS 12 .tar.gz as Release Asset
- name: Upload MacOS 13 .tar.gz as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-paraview-headless-macos-12/ttk-paraview.tar.gz
asset_name: ttk-paraview-headless-macos-12.tar.gz
file: ttk-paraview-headless-macos-13/ttk-paraview.tar.gz
asset_name: ttk-paraview-headless-macos-13.tar.gz


- name: Upload .exe as Release Asset
Expand Down
20 changes: 14 additions & 6 deletions paraview/patch/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-14]
os: [macos-13, macos-14, macos-15]
steps:
- uses: actions/checkout@v4
name: Checkout TTK-ParaView source code
Expand Down Expand Up @@ -239,21 +239,29 @@ jobs:
file: ttk-paraview-ubuntu-24.04/ttk-paraview.deb
asset_name: ttk-paraview-$tag-ubuntu-24.04.deb

- name: Upload MacOS 14 (arm64) .tar.gz as Release Asset
- name: Upload MacOS 15 .tar.gz as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-paraview-macos-15/ttk-paraview.tar.gz
asset_name: ttk-paraview-$tag-macos-15.tar.gz

- name: Upload MacOS 14 .tar.gz as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-paraview-macos-14/ttk-paraview.tar.gz
asset_name: ttk-paraview-$tag-macos-14-arm64.tar.gz
asset_name: ttk-paraview-$tag-macos-14.tar.gz

- name: Upload MacOS 12 .tar.gz as Release Asset
- name: Upload MacOS 13 .tar.gz as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-paraview-macos-12/ttk-paraview.tar.gz
asset_name: ttk-paraview-$tag-macos-12.tar.gz
file: ttk-paraview-macos-13/ttk-paraview.tar.gz
asset_name: ttk-paraview-$tag-macos-13.tar.gz

- name: Upload .exe as Release Asset
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit 844d718

Please sign in to comment.