Skip to content

Commit d1846b3

Browse files
authored
Patch v1.3.0 (#13)
* Revising compilation procedure * Removing MD5 checkusum based verification * Strengthening README.md file * Adding additional compression methods and polishing I/O * Improving coverage * Updating docs
1 parent 7864043 commit d1846b3

31 files changed

Lines changed: 1373 additions & 754 deletions

.github/workflows/build-openvdb.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 75 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,86 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v3
16-
- name: Install dependencies
17-
run: sudo apt install -y build-essential cmake libglm-dev libtclap-dev libboost-all-dev libopenvdb-dev libtbb-dev libcppunit-dev libeigen3-dev liblzma-dev zlib1g-dev libbz2-dev gcovr
18-
- name: Configure CMake
19-
run: mkdir build && cd build && cmake ../src -DUSE_GCOV=1
20-
- name: Build
21-
run: cd build && make -j
22-
- name: Perform unit tests
23-
run: cd build && make test
24-
- name: Perform code coverage
25-
run: |
26-
cd build
27-
gcovr -r ../ . --xml-pretty -e ".*\.h" > coverage.xml
28-
gcovr -r ../ . --html -e ".*\.h" > report.html
29-
- name: Upload coverage report
30-
uses: actions/upload-artifact@v4
31-
with:
32-
name: code-coverage-report
33-
path: ./build/report.html
34-
- name: Upload coverage reports to Codecov
35-
uses: codecov/codecov-action@v3
36-
with:
37-
token: ${{ secrets.CODECOV_TOKEN }}
38-
files: ./build/coverage.xml
39-
40-
test-shared:
14+
- uses: actions/checkout@v4
15+
- name: Install dependencies
16+
run: |
17+
sudo apt update
18+
sudo apt install -y \
19+
build-essential \
20+
cmake \
21+
libglm-dev \
22+
libtclap-dev \
23+
libboost-all-dev \
24+
libopenvdb-dev \
25+
libtbb-dev \
26+
libcppunit-dev \
27+
libeigen3-dev \
28+
liblzma-dev \
29+
zlib1g-dev \
30+
libbz2-dev \
31+
libzstd-dev \
32+
libblosc-dev \
33+
pkg-config \
34+
gcovr
35+
- name: Configure CMake
36+
run: cmake -S src -B build -DUSE_GCOV=ON
37+
- name: Build
38+
run: cmake --build build --parallel
39+
- name: Run unit tests
40+
run: ctest --test-dir build --output-on-failure
41+
- name: Collect coverage report
42+
run: |
43+
gcovr -r . build --xml-pretty -e ".*\\.h" > build/coverage.xml
44+
gcovr -r . build --html -e ".*\\.h" > build/report.html
45+
- name: Upload coverage report
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: code-coverage-report
49+
path: ./build/report.html
50+
- name: Upload coverage reports to Codecov
51+
uses: codecov/codecov-action@v4
52+
with:
53+
token: ${{ secrets.CODECOV_TOKEN }}
54+
files: ./build/coverage.xml
4155

56+
test-shared:
4257
runs-on: ubuntu-latest
4358
needs: build
4459

4560
steps:
46-
- uses: actions/checkout@v3
47-
- name: Install dependencies
48-
run: sudo apt install -y build-essential cmake libglm-dev libtclap-dev libboost-all-dev libopenvdb-dev libtbb-dev libcppunit-dev libeigen3-dev liblzma-dev zlib1g-dev libbz2-dev gcovr
49-
- name: Configure CMake
50-
run: mkdir build && cd build && cmake ../src
51-
- name: Build
52-
run: cd build && make -j && sudo make install
53-
- name: Produce compilation using shared library
54-
run: |
55-
cd examples && mkdir build && cd build
56-
cmake ../shared
57-
make -j
58-
ldd ./den2obj-shared-example
59-
LD_LIBRARY_PATH=/usr/local/lib ./den2obj-shared-example
61+
- uses: actions/checkout@v4
62+
- name: Install dependencies
63+
run: |
64+
sudo apt update
65+
sudo apt install -y \
66+
build-essential \
67+
cmake \
68+
libglm-dev \
69+
libtclap-dev \
70+
libboost-all-dev \
71+
libopenvdb-dev \
72+
libtbb-dev \
73+
libcppunit-dev \
74+
libeigen3-dev \
75+
liblzma-dev \
76+
zlib1g-dev \
77+
libbz2-dev \
78+
libzstd-dev \
79+
libblosc-dev \
80+
pkg-config \
81+
gcovr
82+
- name: Configure CMake
83+
run: cmake -S src -B build
84+
- name: Build and install
85+
run: |
86+
cmake --build build --parallel
87+
sudo cmake --install build
88+
- name: Produce compilation using shared library
89+
run: |
90+
cmake -S examples/shared -B examples/shared/build
91+
cmake --build examples/shared/build --parallel
92+
ldd examples/shared/build/den2obj-shared-example
93+
LD_LIBRARY_PATH=/usr/local/lib ./examples/shared/build/den2obj-shared-example

.github/workflows/docs.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,27 @@ on:
99
- master
1010

1111
permissions:
12-
contents: write # Grants write access to the repository contents
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: pages
18+
cancel-in-progress: false
1319

1420
jobs:
1521
build:
16-
name: Build and Deploy Sphinx Documentation
22+
name: Build Sphinx Documentation
1723
runs-on: ubuntu-latest
1824

1925
steps:
2026
- name: Checkout Repository
21-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2228

2329
- name: Set up Python
24-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
2531
with:
26-
python-version: 3.13.1
32+
python-version: "3.13"
2733

2834
- name: Install Dependencies
2935
run: |
@@ -34,13 +40,33 @@ jobs:
3440
sphinx_design \
3541
sphinx_subfigure \
3642
myst_parser
43+
3744
- name: Build Documentation
3845
run: |
3946
cd docs
4047
make html
4148
42-
- name: Deploy to GitHub Pages
43-
uses: peaceiris/actions-gh-pages@v3
49+
- name: Configure GitHub Pages
50+
if: github.event_name == 'push'
51+
uses: actions/configure-pages@v5
52+
53+
- name: Upload GitHub Pages artifact
54+
if: github.event_name == 'push'
55+
uses: actions/upload-pages-artifact@v3
4456
with:
45-
github_token: ${{ secrets.GITHUB_TOKEN }}
46-
publish_dir: docs/_build/html
57+
path: docs/_build/html
58+
59+
deploy:
60+
name: Deploy GitHub Pages
61+
if: github.event_name == 'push'
62+
needs: build
63+
runs-on: ubuntu-latest
64+
65+
environment:
66+
name: github-pages
67+
url: ${{ steps.deployment.outputs.page_url }}
68+
69+
steps:
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*.out
2828
*.app
2929

30-
build/*
30+
build*/*
3131
CHGCAR*
3232
*.png
3333
src/config.h

0 commit comments

Comments
 (0)