Skip to content

Commit

Permalink
Merge pull request #8 from julien-tierny/5.13.0
Browse files Browse the repository at this point in the history
[ci-pv513] Fixes for package generation
  • Loading branch information
julien-tierny authored Sep 12, 2024
2 parents 15abbbe + da7577b commit 9c53fa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/headless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
name: Checkout TTK-ParaView source code
Expand Down Expand Up @@ -103,16 +103,13 @@ jobs:
$GITHUB_WORKSPACE
- name: Build ParaView
continue-on-error: true
run: |
cd build
cmake --build . --parallel
- name: Create ParaView package
run: |
cd build
echo -e "===\n\n\nDisplaying vtkPVVersionQuick.h...\n\n\n==="
cat Utilities/Versioning/vtkPVVersionQuick.h
cpack -G TGZ
- name: Upload compressed binaries
Expand Down Expand Up @@ -235,14 +232,6 @@ jobs:
file: ttk-paraview-headless-ubuntu-22.04/ttk-paraview.deb
asset_name: ttk-paraview-headless-ubuntu-22.04.deb

- name: Upload Ubuntu Noble Numbat .deb as Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-paraview-headless-ubuntu-24.04/ttk-paraview.deb
asset_name: ttk-paraview-headless-ubuntu-24.04.deb

- name: Upload MacOS 14 (arm64) .tar.gz as Release Asset
uses: svenstaro/upload-release-action@v2
with:
Expand Down
9 changes: 4 additions & 5 deletions Remoting/Core/vtkPVFileInformation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,11 @@ std::string vtkPVFileInformation::GetParaViewSharedResourcesDirectory()

// Where docs might be in relation to the executable
std::vector<std::string> prefixes = {
#if defined(_WIN32) || defined(__APPLE__)
".."
#else
"share/paraview-" PARAVIEW_VERSION
#endif
};

// Search for the docs directory
Expand All @@ -1257,11 +1261,6 @@ std::string vtkPVFileInformation::GetParaViewSharedResourcesDirectory()
resource_dir = vtksys::SystemTools::CollapseFullPath(resource_dir);
}

vtkProcessModule* pm = vtkProcessModule::GetProcessModule();

if((pm)&&(prefixes.size()))
resource_dir = pm->GetSelfDir() + "/../" + prefixes[0];

return resource_dir;
}

Expand Down

0 comments on commit 9c53fa4

Please sign in to comment.