-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
106 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
runs: | ||
|
||
using: 'composite' | ||
|
||
steps: | ||
- name: Upload package | ||
if: github.event.action == 'published' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ runner.os }}_binary_archive-${{ matrix.cc }}-${{ matrix.mpi }}-shared-${{ matrix.shared }} | ||
path: build/package | ||
|
||
- name: Upload log files | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ runner.os }}_cmake_log-${{ matrix.cc }}-${{ matrix.mpi }}-shared-${{ matrix.shared }} | ||
path: | | ||
./build/CMakeFiles/CMakeConfigureLog.yaml | ||
./build/Testing/Temporary/LastTest.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
runs: | ||
|
||
using: 'composite' | ||
|
||
steps: | ||
- name: CMake configure | ||
shell: bash | ||
run: >- | ||
cmake --preset default | ||
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }} | ||
- name: CMake build | ||
shell: bash | ||
run: cmake --build --preset default | ||
|
||
- name: CMake self-tests | ||
shell: bash | ||
run: ctest --preset default | ||
|
||
- name: install p4est CMake package | ||
shell: bash | ||
run: cmake --install build | ||
|
||
# standalone examples tests that CMake packaging is correct | ||
- name: CMake configure examples | ||
shell: bash | ||
run: >- | ||
cmake -B example/build -S example | ||
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }} | ||
- name: CMake build examples | ||
shell: bash | ||
run: cmake --build example/build | ||
|
||
- name: Create package | ||
shell: bash | ||
if: github.event.action == 'published' | ||
run: cpack --config build/CPackConfig.cmake |