Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement ghost query functions #1248

Draft
wants to merge 446 commits into
base: feature-ghost_interface
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
446 commits
Select commit Hold shift + click to select a range
0ed0724
Update copyright notice.
holke Aug 14, 2024
c44a5d7
Change eps to T8_PRECISION_EPS
holke Aug 14, 2024
a4a50ea
change eps to T8_PRECISION_EPS
holke Aug 14, 2024
7232987
Merge pull request #1187 from DLR-AMR/feature-test_geom_triangular_in…
holke Aug 14, 2024
ad8993b
Merge branch 'main' into fix-correction-trafo-spherical-shell
jmark Aug 14, 2024
93631ae
Increased example radius for disk and sphere.
Aug 14, 2024
10459d4
Merge pull request #1185 from DLR-AMR/fix-correction-trafo-spherical-…
jmark Aug 14, 2024
48223af
Updated comment
Davknapp Aug 15, 2024
2215b63
Merge branch 'main' into improve-search_callback
Davknapp Aug 15, 2024
66535cd
Merge pull request #1208 from DLR-AMR/improve-search_callback
holke Aug 15, 2024
d7898e6
Merge pull request #1217 from DLR-AMR/enhancement-cmesh_examples_geom…
jmark Aug 15, 2024
ce54168
Merge branch 'main' into enhancement-geometry_checking
sandro-elsweijer Aug 15, 2024
b3b88df
remove [[maybe_unused]] attributes
dutkalex Aug 16, 2024
a62ab7a
add macro around variable which is only used with vtk
sandro-elsweijer Aug 16, 2024
43cf738
Merge pull request #1222 from DLR-AMR/fix-warning
holke Aug 16, 2024
9f1d105
Merge branch 'main' into fix-warnings
dutkalex Aug 16, 2024
b65182d
Delete src/t8_cmesh/t8_cmesh_vtk_writer.c
dutkalex Aug 16, 2024
6399e16
indent
sandro-elsweijer Aug 16, 2024
e5bdd22
Merge pull request #1223 from DLR-AMR/fix-warnings_indent
sandro-elsweijer Aug 19, 2024
8634236
Update api/Makefile.am
chiaraMaHe Aug 19, 2024
574ee3e
Remove # to add fortran_specific_mk
chiaraMaHe Aug 19, 2024
2a514b8
Rename file
chiaraMaHe Aug 19, 2024
00fd28b
Merge pull request #1216 from DLR-AMR/fix-add_api_to_indent_all_files
Prasanna-Ponnusamy Aug 19, 2024
5789d57
anhance documentation and syntax of findopencascade
sandro-elsweijer Aug 20, 2024
d230465
Merge pull request #1212 from DLR-AMR/VTK_components
sandro-elsweijer Aug 20, 2024
ff9055f
add input description for cmake ci preparation
sandro-elsweijer Aug 20, 2024
65dd301
add input description for cmake ci sc p4est
sandro-elsweijer Aug 20, 2024
ebee6bc
Merge branch 'feature-CMake_CI_1' into feature-CMake_CI_1_5
sandro-elsweijer Aug 20, 2024
0930ac6
add input description for cmake ci t8code tests
sandro-elsweijer Aug 20, 2024
937c2ab
Merge branch 'feature-CMake_CI_1_5' into feature-CMake_CI_2
sandro-elsweijer Aug 20, 2024
e002136
add input description for cmake ci t8code linkage tests
sandro-elsweijer Aug 20, 2024
e8fda9e
Merge branch 'feature-CMake_CI_2' into feature-CMake_CI_3
sandro-elsweijer Aug 20, 2024
3b187f1
add input description for cmake ci t8code api tests
sandro-elsweijer Aug 20, 2024
265ebd4
Merge branch 'main' into feature-CMake_CI_1
sandro-elsweijer Aug 20, 2024
67e4cb9
Merge pull request #1195 from DLR-AMR/feature-CMake_CI_1
Davknapp Aug 20, 2024
7d02ec8
switch from ninja test to ctest for parallel test execution
sandro-elsweijer Aug 20, 2024
a5799d7
switch from ninja test to ctest for parallel test execution
sandro-elsweijer Aug 20, 2024
52b4a91
let tests run in parallel as default
sandro-elsweijer Aug 21, 2024
d0ae185
enhance default build type selection
sandro-elsweijer Aug 21, 2024
3a7928d
Merge pull request #1228 from DLR-AMR/fix-cmake_parallel_tests
Davknapp Aug 21, 2024
03e9657
add option to export cmake compile commands
sandro-elsweijer Aug 22, 2024
5017a1b
Merge branch 'main' into feature-CMake_CI_1_5
Davknapp Aug 23, 2024
55d7e45
Merge pull request #1199 from DLR-AMR/feature-CMake_CI_1_5
Davknapp Aug 23, 2024
f4e036c
Merge branch 'main' into feature-CMake_CI_2
Davknapp Aug 23, 2024
83f9ce9
Merge branch 'feature-CMake_CI_2' into fix-enable_parallel_tests_in_c…
Davknapp Aug 23, 2024
3e42eea
Merge pull request #1200 from DLR-AMR/feature-CMake_CI_2
Davknapp Aug 23, 2024
bd08533
add CI test for t8code with shipped submodules
sandro-elsweijer Aug 23, 2024
e7ac069
typo
sandro-elsweijer Aug 23, 2024
bbd0a4f
remove the matrix from test
sandro-elsweijer Aug 23, 2024
305ae48
Merge branch 'main' into fix-enable_parallel_tests_in_cmake_ci
sandro-elsweijer Aug 23, 2024
6705030
Merge pull request #1233 from DLR-AMR/fix-typo_in_pr_template
Davknapp Aug 23, 2024
4abab5b
Merge pull request #1226 from DLR-AMR/fix-enable_parallel_tests_in_cm…
sandro-elsweijer Aug 23, 2024
27b0867
Revert "Enable parallel tests in cmake ci"
sandro-elsweijer Aug 23, 2024
17560e7
remove makeflags from ninja test to avoid confusion
sandro-elsweijer Aug 23, 2024
7a48f8b
execute tests in serial bc its faster
sandro-elsweijer Aug 23, 2024
2b7cb44
execute tests in serial bc its faster
sandro-elsweijer Aug 23, 2024
3d4a29f
Merge branch 'main' into feature-cmake_CI_with_submodules
sandro-elsweijer Aug 23, 2024
d5a91d2
retain folder structure of examples
sandro-elsweijer Aug 23, 2024
4ba3e69
make macro ready for multiple executable files
sandro-elsweijer Aug 23, 2024
7891a4d
retain folder structure of tutorials
sandro-elsweijer Aug 23, 2024
55e5a4e
Merge pull request #1234 from DLR-AMR/revert-1226-fix-enable_parallel…
sandro-elsweijer Aug 23, 2024
95ef71a
retain folder structure of tests
sandro-elsweijer Aug 23, 2024
88e5f29
retain folder structure of benchmarks
sandro-elsweijer Aug 23, 2024
4fbe162
Merge branch 'main' into feature-cmake_CI_with_submodules
Davknapp Aug 26, 2024
e3d0d50
Merge branch 'main' into enhancement-default_build_type
sandro-elsweijer Aug 27, 2024
f182d58
Merge pull request #1229 from DLR-AMR/enhancement-default_build_type
Davknapp Aug 27, 2024
4ddb420
Add _serial suffix to all tests that should only run in serial
Davknapp Aug 27, 2024
fd3493a
Run serial tests only on 1 proc
Davknapp Aug 27, 2024
e189147
Add parallel suffix to indicate mpi-parallel execution for tests
Davknapp Aug 27, 2024
072f0f2
split CI testrun in a serial and a parallel run.
Davknapp Aug 27, 2024
3fb4ddb
Add missing test-split
Davknapp Aug 27, 2024
626fb57
Merge remote-tracking branch 'origin/main' into CI_speedup
Davknapp Aug 27, 2024
023e2b6
Apply changes from code review
Davknapp Aug 27, 2024
7c395e8
Execute half-neighbor test in serial + Indentation
Davknapp Aug 27, 2024
5840f5b
Apply suggestions from code review
Davknapp Aug 27, 2024
4e4eac7
fix typo
sandro-elsweijer Aug 27, 2024
5383a7d
adapt epsilon
sandro-elsweijer Aug 27, 2024
c6277b2
typo
sandro-elsweijer Aug 27, 2024
b828ade
Merge remote-tracking branch 'origin/CI_speedup' into CI_speedup
Davknapp Aug 27, 2024
bdf3b36
Offer two custom commands, one for serial, one for parallel tests
Davknapp Aug 27, 2024
1b501a8
Move is_leaf to serial execution
Davknapp Aug 27, 2024
7c279b6
update serial execution
Davknapp Aug 27, 2024
badec87
Update CMakeLists.txt
Davknapp Aug 27, 2024
b405fa1
Update CMakeLists.txt
Davknapp Aug 27, 2024
5248f22
Update workflow
Davknapp Aug 27, 2024
9fb15bb
Merge remote-tracking branch 'origin/CI_speedup' into CI_speedup
Davknapp Aug 27, 2024
2ca27ac
Merge pull request #1238 from DLR-AMR/CI_speedup
sandro-elsweijer Aug 27, 2024
0729371
Merge pull request #1239 from DLR-AMR/enhancement-minor_fixes
Davknapp Aug 27, 2024
2023e3b
Removing constexpr.
Aug 30, 2024
6c4d6fe
Fixing minor stuff.
Aug 30, 2024
dbfd679
Apply suggestion from code review
sandro-elsweijer Sep 2, 2024
07c7fb5
Apply suggestion from code review
sandro-elsweijer Sep 2, 2024
bb33b73
add compile command output to benchmarks
sandro-elsweijer Sep 2, 2024
ac02b44
add compile command output to example
sandro-elsweijer Sep 2, 2024
0f1e350
add compile command output to tests
sandro-elsweijer Sep 2, 2024
1bb2580
add compile command output to tutorials
sandro-elsweijer Sep 2, 2024
7ca141c
Merge branch 'main' into feature-export_cmake_compile_commands
maelk3 Sep 2, 2024
cc6391d
Merge pull request #1230 from DLR-AMR/feature-export_cmake_compile_co…
sandro-elsweijer Sep 2, 2024
e3d763f
Merge branch 'main' into enhancement-geometry_checking
sandro-elsweijer Sep 2, 2024
7f823ff
indent
sandro-elsweijer Sep 2, 2024
a927082
Merge branch 'main' into enhancement-reatain_source_folder_structure
jmark Sep 3, 2024
6bce0b7
Merge pull request #1235 from DLR-AMR/enhancement-reatain_source_fold…
jmark Sep 3, 2024
98c93df
Merge branch 'main' into fix-const-expr
Sep 3, 2024
df09d6b
Applying formater.
Sep 3, 2024
4d55d2a
Update t8_vtk_write_ASCII.cxx
jmark Sep 4, 2024
fe7d32c
Merge pull request #1242 from DLR-AMR/fix-const-expr
Davknapp Sep 4, 2024
b242985
Merge branch 'main' into enhancement-geometry_checking
Davknapp Sep 5, 2024
717fcf5
simplify return value
sandro-elsweijer Sep 6, 2024
05949f7
consting
sandro-elsweijer Sep 6, 2024
1053773
typo
sandro-elsweijer Sep 6, 2024
66e8634
simplify return value
sandro-elsweijer Sep 6, 2024
65e363a
documentation
sandro-elsweijer Sep 6, 2024
362bb55
Merge branch 'enhancement-geometry_checking' of github.com:DLR-AMR/t8…
sandro-elsweijer Sep 6, 2024
3e07b16
documentation
sandro-elsweijer Sep 6, 2024
ce8365c
Merge pull request #1205 from DLR-AMR/enhancement-geometry_checking
Davknapp Sep 6, 2024
d91b22e
Merge branch 'main' into enhancement-remove_dimensionality_of_geoms
sandro-elsweijer Sep 6, 2024
c0f0007
Bump peter-evans/create-pull-request from 6 to 7
dependabot[bot] Sep 9, 2024
9080ca7
Merge pull request #1245 from DLR-AMR/dependabot/github_actions/peter…
Davknapp Sep 9, 2024
c236276
typo
sandro-elsweijer Sep 13, 2024
7854091
Merge branch 'main' into feature-multiple_attributes_ghost_commit_fro…
lukasdreyer Sep 13, 2024
e68a065
convert int to switch
sandro-elsweijer Sep 13, 2024
37691ab
indent
sandro-elsweijer Sep 13, 2024
4fa0640
Merge pull request #1246 from DLR-AMR/fix-typo_in_example
Davknapp Sep 13, 2024
a179fb8
Remove dead code
lukasdreyer Sep 13, 2024
37b835c
Document function and remove unused parameter
lukasdreyer Sep 13, 2024
2a7903f
Adapt function call to new interface
lukasdreyer Sep 13, 2024
a095bc0
Merge branch 'main' into feature-multiple_attributes_ghost_commit_fro…
lukasdreyer Sep 16, 2024
9cf9ec3
Add t8_fortran.m4 to Makefile
chiaraMaHe Sep 16, 2024
3cfce56
Change name of fortran file
chiaraMaHe Sep 16, 2024
c870226
Add t8_fortran.m4
chiaraMaHe Sep 16, 2024
f68206d
move binary soearch to forest_private
sandro-elsweijer Sep 16, 2024
933ac88
consting
sandro-elsweijer Sep 16, 2024
1e0ef37
add ghost retrieval functions
sandro-elsweijer Sep 16, 2024
3fee901
Typos
holke Sep 18, 2024
8df9a13
Merge branch 'main' into feature-cmake_CI_with_submodules
sandro-elsweijer Sep 20, 2024
a283680
remove outdated ci playground
sandro-elsweijer Sep 20, 2024
c16261f
make tests faster
sandro-elsweijer Sep 20, 2024
07f201c
Merge branch 'main' into fix-occ_linkage
sandro-elsweijer Sep 20, 2024
123ac2d
Merge pull request #1225 from DLR-AMR/fix-occ_linkage
sandro-elsweijer Sep 20, 2024
e6b75a3
Merge branch 'main' into feature-multiple_attributes_ghost_commit_fro…
lukasdreyer Sep 23, 2024
e92f3bc
Merge pull request #1173 from DLR-AMR/feature-multiple_attributes_gho…
holke Sep 23, 2024
22f4751
Merge branch 'main' into feature-cmake_CI_with_submodules
sandro-elsweijer Sep 23, 2024
01d3c33
Merge remote-tracking branch 'origin/fortran-interface' into feature-…
Sep 24, 2024
158de95
Merge remote-tracking branch 'origin/fortran-build' into feature-fort…
Sep 24, 2024
ce35a77
Renamed Fortran interface module.
Sep 24, 2024
d147732
Updated makefile to new fortran interface module name.
Sep 24, 2024
6fdace6
Merge pull request #1232 from DLR-AMR/feature-cmake_CI_with_submodules
Prasanna-Ponnusamy Sep 24, 2024
e48d01f
Added _mod suffix.
Sep 24, 2024
4656654
Add tutorial files
lukasdreyer Sep 24, 2024
b60c3b4
added target package_source to create tar-ball
Davknapp Sep 24, 2024
9835f96
Started cmake-tarball test
Davknapp Sep 24, 2024
1aead09
Update indentation of workflow file
Davknapp Sep 24, 2024
16ff88e
split workflow
Davknapp Sep 24, 2024
6b3a73e
Remove duplication
Davknapp Sep 24, 2024
44267bd
Update build_cmake_tarball.yml
Davknapp Sep 24, 2024
397f9a4
Merge branch 'main' into Cpack
Davknapp Sep 24, 2024
2c5c61a
rename workflows
Davknapp Sep 24, 2024
c0d06f1
Update name
Davknapp Sep 24, 2024
9d96e1f
update indentation
Davknapp Sep 24, 2024
a269246
do not use system sc&p4est to test tarball creation
Davknapp Sep 24, 2024
64d7fb5
Merge remote-tracking branch 'origin/Cpack' into Cpack
Davknapp Sep 24, 2024
367145e
only start wf if the previous one is completed
Davknapp Sep 24, 2024
f31518a
update path to look for tar-ball
Davknapp Sep 24, 2024
dd02d0d
update paths
Davknapp Sep 24, 2024
8bf1119
specify to upload the packaged source
Davknapp Sep 24, 2024
7ce22dd
use artifact from triggering wf
Davknapp Sep 24, 2024
f2030c5
run-id -> run_id
Davknapp Sep 24, 2024
13fedd2
CMake build for Fortran interface.
Sep 24, 2024
14f3db6
documentation is wrong: run_id -> run-id
Davknapp Sep 24, 2024
8c171a8
Update src/t8_forest/t8_forest_ghost.cxx
holke Sep 24, 2024
5616096
Update src/t8_forest/t8_forest_ghost.h
holke Sep 24, 2024
574b415
Update src/t8_forest/t8_forest_private.cxx
holke Sep 24, 2024
5909a16
Update src/t8_forest/t8_forest_private.h
holke Sep 24, 2024
553c40e
Add debug output
Davknapp Sep 24, 2024
8408e10
remove typo
Davknapp Sep 24, 2024
cc743ca
Fixed autotools.
Sep 24, 2024
2d1d070
update on-success/on-failure logic
Davknapp Sep 24, 2024
a30b2fe
do not start workflow on push/pull logic
Davknapp Sep 24, 2024
1523f92
Reorganized autools Fortran interface.
Sep 24, 2024
361f16a
Added MPI Fortran test.
Sep 24, 2024
725acde
Merge branch 'main' into feature-fortran-interface
Sep 24, 2024
e4df9dd
Added comment and license.
Sep 24, 2024
41c337f
Ignore CMake related cache files.
Sep 24, 2024
9667de5
Refinement.
Sep 24, 2024
aa66820
Added license.
Sep 24, 2024
e8f3def
Code cleanup.
Sep 24, 2024
8ace647
Update workflow dependencies
Davknapp Sep 25, 2024
467c397
retry dependencies
Davknapp Sep 25, 2024
c655873
update branch restrictions
Davknapp Sep 25, 2024
0e7f8fa
Update create_from_cmake_tarball.yml
Davknapp Sep 25, 2024
2e69cc3
Update build_cmake_tarball.yml
Davknapp Sep 25, 2024
c9330ca
Update build_cmake_tarball.yml
Davknapp Sep 25, 2024
54234ea
Update workflow run
Davknapp Sep 25, 2024
307eea0
Merge remote-tracking branch 'origin/Cpack' into Cpack
Davknapp Sep 25, 2024
0cfe391
UPdate triggering event
Davknapp Sep 25, 2024
7293849
Fixed typo.
Sep 25, 2024
4291fe4
write version-file
Davknapp Sep 25, 2024
168780a
Change write location
Davknapp Sep 25, 2024
8a9305d
Appended parallel suffix to Fortran linkage test.
Sep 26, 2024
3b99849
Read version from file when building from tar
Davknapp Sep 26, 2024
c56a8c2
update build
Davknapp Sep 26, 2024
bec4dad
Update triggering workflow for build_tar
Davknapp Sep 26, 2024
9542fea
remove branch restriction
Davknapp Sep 26, 2024
0a65275
Run workflow on different branches than default
Davknapp Sep 26, 2024
9ab473a
Discard dependencies
Davknapp Sep 26, 2024
25ded76
dont use system libs
Davknapp Sep 26, 2024
87aa2f9
update tarball location
Davknapp Sep 26, 2024
b27b205
create dir tarballs
Davknapp Sep 26, 2024
f2e960d
Change location to find cmake
Davknapp Sep 26, 2024
abbae2d
correction
Davknapp Sep 26, 2024
3b8c684
Update location of verstion.txt
Davknapp Sep 26, 2024
445604a
Remove obsolete workflow
Davknapp Sep 26, 2024
5fb4b56
Merge branch 'main' into feature-CMake_CI_3
sandro-elsweijer Sep 26, 2024
9babf22
Merge branch 'main' into feature-cmake_tutorial_files
Davknapp Sep 26, 2024
5883272
Merge pull request #1251 from DLR-AMR/feature-cmake_tutorial_files
sandro-elsweijer Sep 27, 2024
381cd5d
Merge branch 'main' into Cpack
Davknapp Sep 27, 2024
7c56ce6
enforce MPI in api tests
sandro-elsweijer Sep 27, 2024
91433fa
update fortran build flag in ci
sandro-elsweijer Sep 27, 2024
0163f0c
Merge branch 'feature-CMake_CI_3' into feature-fortran-interface
Sep 27, 2024
84e78d9
Apply suggestions from review
Davknapp Sep 27, 2024
8116ab9
Added warning and reverted parameter in GH action.
Sep 27, 2024
f2e77f3
Merge branch 'main' into feature-fortran-interface
Sep 27, 2024
de463b8
Merge pull request #1254 from DLR-AMR/Cpack
jmark Sep 27, 2024
269252f
Merge branch 'main' into feature-fortran-interface
Sep 27, 2024
1401af5
Enable api workflow
sandro-elsweijer Sep 30, 2024
9dc9e88
Add write_element_id to initializer-list
Davknapp Sep 30, 2024
a31db6c
allow more clang-format versions
sandro-elsweijer Sep 30, 2024
eb4ec4d
update links
sandro-elsweijer Oct 1, 2024
ab2e625
Merge pull request #1257 from DLR-AMR/fix-write_element_id
sandro-elsweijer Oct 1, 2024
0304b62
Merge branch 'main' into feature-fortran-interface
Davknapp Oct 1, 2024
d3d337d
Merge pull request #1255 from DLR-AMR/feature-fortran-interface
Davknapp Oct 1, 2024
2bf15fd
Merge pull request #1259 from DLR-AMR/fix-links
Davknapp Oct 1, 2024
ff2de8f
Merge branch 'main' into enhancement-clang-format_version
Davknapp Oct 2, 2024
aabd814
Merge pull request #1258 from DLR-AMR/enhancement-clang-format_version
sandro-elsweijer Oct 2, 2024
72468db
Merge branch 'main' into enhancement-remove_dimensionality_of_geoms
jmark Oct 7, 2024
3955209
add new author
ole-alb Oct 8, 2024
3da1b9c
cleanup prefix for output file
ole-alb Oct 8, 2024
f6bf659
Merge pull request #1262 from DLR-AMR/cleanup-tutorial-build-cmesh
Davknapp Oct 8, 2024
9bd5f1c
Merge branch 'main' into enhancement-remove_dimensionality_of_geoms
jmark Oct 8, 2024
f61d44d
Merge pull request #1215 from DLR-AMR/enhancement-remove_dimensionali…
jmark Oct 8, 2024
02c780a
add new author
ole-alb Oct 8, 2024
f5dbd58
updated the default file prefix
ole-alb Oct 9, 2024
77fb290
Merge branch 'main' into fix_issue_1252
ole-alb Oct 9, 2024
aa7d761
Merge pull request #1263 from DLR-AMR/fix_issue_1252
Davknapp Oct 9, 2024
b9df8b4
Use looser indent-script condition for all indent scripts
Davknapp Oct 11, 2024
aca99ba
remove patch-number
Davknapp Oct 11, 2024
871a487
Merge pull request #1265 from DLR-AMR/update-indent_scripts
sandro-elsweijer Oct 14, 2024
70e9f37
Merge remote-tracking branch 'origin/feature-ghost_interface' into en…
holke Oct 18, 2024
31e9d92
indent example
holke Oct 18, 2024
2ccc215
Merge remote-tracking branch 'origin/enhancement-ghost_query_function…
holke Oct 18, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/add_release_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
./generate_redirections.sh $GITHUB_REF_NAME
- name: Create Pull Request at DLR-AMR/t8code-website
if: ${{ env.MINOR_RELEASE == 'true' }}
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
path: t8code-website
title: Add documentation for t8code ${{ github.ref_name }}
Expand Down
165 changes: 165 additions & 0 deletions .github/workflows/build_cmake_tarball.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
name: CMake Tarball

# This file is part of t8code.
# t8code is a C library to manage a collection (a forest) of multiple
# connected adaptive space-trees of general element types in parallel.
#
# Copyright (C) 2024 the developers
#
# t8code is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# t8code is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with t8code; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

#
# This github CI script constructs a tarball and checks if it is build correctly.
#

env:
MAKEFLAGS: "-j2 V=0"


on:
push:
branches:
- main
- develop
- CI-*tarball* # for testing this script, all feature branches with "tarball" in their name
pull_request:
branches:
- main
- develop
workflow_dispatch:

jobs:
build:

if: (github.event_name == 'schedule' && github.repository == 'DLR-AMR/t8code') || (github.event_name != 'schedule')
runs-on: ubuntu-20.04
container: dlramr/t8code-ubuntu:t8-dependencies
timeout-minutes: 90
steps:
#
# Setup and bootstrap
#
- uses: actions/checkout@v4
with:
fetch-tags: true # required to get version tags
fetch-depth: 0 # required to get all history, especially the version tags
- name: install sudo
run: apt update && apt install sudo
# On the github Ubuntu 20.04, sudo is not available by default
# we need it, however, to update/upgrade our packages.
- name: Update packages
run: sudo apt-get update && sudo apt-get upgrade -y
# This step is necessary to get the newest package data
- name: disable ownership checks
run: git config --global --add safe.directory '*'
- name: init submodules
run: git submodule init
- name: update submodules
run: git submodule update
- name: bootstrap
run: ./bootstrap
#
# T8CODE
# with p4est and sc as internal dependencies which is needed for make dist
#
#
- name: less-test option
if: ${{ inputs.LESS_TESTS }}
run: export LESS_TEST_OPTION="-DT8CODE_ENABLE_LESS_TESTS=ON"
&& echo LESS_TEST_OPTION="$LESS_TEST_OPTION" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DT8CODE_USE_SYSTEM_SC=OFF -DT8CODE_USE_SYSTEM_P4EST=OFF -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
- name: cmake
run: mkdir build && cd build && cmake ../ $CONFIG_OPTIONS
- name: OnFailUploadLog
if: failure()
uses: actions/upload-artifact@v4
with:
name: config.log
path: build/config.log
# Start building tarball
- name: Install pandoc
uses: nikeee/setup-pandoc@v1
- name: Test pandoc
run: pandoc --version
# Build the tarball
- name: Make tarball
run: cd build && ninja GenerateVersionFile && ninja package_source && mkdir tarballs && mv package/*Source.tar.gz tarballs
# Upload the tarball
- name: upload tarball
uses: actions/upload-artifact@v4
with:
name: tarballs
path: build/tarballs

test-tarball:
needs: build
runs-on: ubuntu-20.04
container: dlramr/t8code-ubuntu:t8-dependencies
timeout-minutes: 90
steps:
- name: install sudo
run: apt update && apt install sudo
# On the github Ubuntu 20.04, sudo is not available by default
# we need it, however, to update/upgrade our packages.
- name: Update packages
run: sudo apt-get update && sudo apt-get upgrade -y
# This step is necessary to get the newest package data
- name: Download tarball
uses: actions/download-artifact@v4
with:
name: tarballs
path: tarballs
- name: Extract tarball
run: tar xzf tarballs/*.tar.gz -C $RUNNER_TEMP
- name: update Github_env
run: export TAR_DIR="$RUNNER_TEMP/`basename tarballs/*.tar.gz .tar.gz`" &&
echo TAR_DIR="$TAR_DIR" >>$GITHUB_ENV

# build config vars
- name: less-test-option
if: github.event_name == 'pull_request'
run: export LESS_TEST_OPTION="-DT8CODE_ENABLE_LESS_TESTS=ON"
&& echo LESS_TEST_OPTION="$LESS_TEST_OPTION" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DT8CODE_USE_SYSTEM_SC=OFF -DT8CODE_USE_SYSTEM_P4EST=OFF -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
- name: Check vars
run: echo "[$CONFIG_DEBUG]"
- name: configure from Tarball
run: mkdir build_tar && cd build_tar && cmake $TAR_DIR $CONFIG_OPTIONS
- name: OnFailUploadLog
if: failure()
uses: actions/upload-artifact@v4
with:
name: build_tar.log
path: build_tar/config.log
- name: build
run: cd build_tar && ninja
- name: install
run: cd build_tar && ninja install
- name: check serial
run: cd build_tar && ctest -R _serial
- name: check parallel
run: cd build_tar && ctest -R _parallel
- name: OnFailUploadLog
if: failure()
uses: actions/upload-artifact@v4
with:
name: build_tar.log
path: build_tar/test-suite.log


121 changes: 0 additions & 121 deletions .github/workflows/ci_playground.yml

This file was deleted.

20 changes: 13 additions & 7 deletions .github/workflows/mattermost_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,26 @@ jobs:
- name: debug_before_build
run: echo ${{ env.message_build}}
# build the message depending on different types of events and event actions. Message is written into mattermost.json
- name: dispatch_run
if: github.event_name == 'workflow_dispatch'
run: |
echo message_build=1 >> $GITHUB_ENV &&
echo message_content='User ${{github.actor}} triggered the workflow_dispatch' >> $GITHUB_ENV
- name: closed_message
if: github.event.action == 'closed'
run: |
echo message_build=1 >> $GITHUB_ENV &&
echo message_content='Issue ${{ github.event.issue.number }} has been closed. See ${{ github.event.issue.html_url }} for more details.' >> $GITHUB_ENV
# Would like to have this message read "User X closed issue ...".
# How can we get the user name? Tried ${{ github.event.issue.user.name }} and others, did not work.
echo message_content='User ${{ github.actor }} closed issue ${{ github.event.issue.number }}. See ${{ github.event.issue.html_url }} for more details.' >> $GITHUB_ENV
- name: opened_message
if: github.event.action == 'opened' || github.event.action == 'reopened'
if: github.event.action == 'opened'
run: |
echo message_build=1 >> $GITHUB_ENV &&
echo message_content='User ${{ github.actor }} opened issue ${{ github.event.issue.number }}. See ${{ github.event.issue.html_url }} for more details.' >> $GITHUB_ENV
- name: reopened_message
if: github.event.action == 'reopened'
run: |
echo message_build=1 >> $GITHUB_ENV &&
echo message_content='Issue ${{ github.event.issue.number }} was (re-)opened. See ${{ github.event.issue.html_url }} for more details.' >> $GITHUB_ENV
# Would like to have this message read "User X (re-)opened issue ...".
# How can we get the user name? Tried ${{ github.event.issue.user.name }} and others, did not work.
echo message_content='User ${{ github.actor }} reopened issue ${{ github.event.issue.number }}. See ${{ github.event.issue.html_url }} for more details.' >> $GITHUB_ENV
- name: debug_after_build
run: echo ${{ env.message_build }}
# if a message has been written send the message to the mattermost-channel described in the secrets
Expand Down
Loading