-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from pecos/dist
updates to support "make dist"
- Loading branch information
Showing
14 changed files
with
301 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,10 @@ jobs: | |
options: --user 1001 --privileged | ||
name: Code style | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Bootstrap | ||
|
@@ -34,6 +38,10 @@ jobs: | |
options: --user 1001 --privileged | ||
name: Build/CPU | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
|
@@ -63,6 +71,10 @@ jobs: | |
MFEM_LIB: /home/karl/sw/mfem-gpu-4.2/lib | ||
MFEM_INC: /home/karl/sw/mfem-gpu-4.2/include | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
|
@@ -86,6 +98,10 @@ jobs: | |
MFEM_LIB: /home/karl/sw/mfem-hip-4.3/lib | ||
MFEM_INC: /home/karl/sw/mfem-hip-4.3/include | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
|
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,112 @@ | ||
name: Distcheck | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
# make sure steps are run in a login shell to support Lmod modules | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
distbuild: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: koomietx/mfem:4.2.tps | ||
options: --user 1001 --privileged | ||
name: Create dist tarball | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
- name: Bootstrap | ||
run: ./bootstrap | ||
- name: Configure | ||
run: ./configure | ||
- name: Dist | ||
run: make dist | ||
- name: Archive tarball | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: tarball-${{ github.event.pull_request.head.sha }} | ||
path: tps-*.tar.gz | ||
disttest-cpu: | ||
runs-on: ubuntu-20.04 | ||
needs: distbuild | ||
container: | ||
image: koomietx/mfem:4.2.tps | ||
options: --user 1001 --privileged | ||
name: CPU release tarball tests | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Access tarball | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: tarball-${{ github.event.pull_request.head.sha }} | ||
- name: Expand | ||
run: tar xfz tps-*.tar.gz; rm tps-*.tar.gz | ||
- name: Configure | ||
run: cd tps-*; ./configure CXXFLAGS="-I$PETSC_INC" LDFLAGS="-L$PETSC_LIB -lpetsc" | ||
- name: Make | ||
run: cd tps-*; make -j 2 | ||
- name: TPS version | ||
run: cd tps-*; ./src/tps --version | ||
- name: Tests | ||
run: cd tps-*; make AM_COLOR_TESTS=yes check || (cat test/*.log; exit 1) | ||
- name: Distclean | ||
run: cd tps-*; make distclean | ||
- name: VPATH configure | ||
run: cd tps-*; mkdir build; cd build; ../configure CXXFLAGS="-I$PETSC_INC" LDFLAGS="-L$PETSC_LIB -lpetsc" | ||
- name: VPATH make | ||
run: cd tps-*; cd build; make -j 2 | ||
- name: VPATH tests | ||
run: cd tps-*; cd build; make AM_COLOR_TESTS=yes check || (cat test/*.log; exit 1) | ||
disttest-gpu: | ||
runs-on: [self-hosted, linux, x64, gpu, marvin-cuda] | ||
needs: distbuild | ||
name: GPU/Cuda release tarball tests | ||
env: | ||
MFEM_LIB: /home/karl/sw/mfem-gpu-4.2/lib | ||
MFEM_INC: /home/karl/sw/mfem-gpu-4.2/include | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Access tarball | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: tarball-${{ github.event.pull_request.head.sha }} | ||
- name: Expand | ||
run: tar xfz tps-*.tar.gz; rm tps-*.tar.gz | ||
- name: MFEM Tree | ||
run: echo "MFEM_INC=$MFEM_INC, MFEM_LIB=$MFEM_LIB" | ||
- name: Query modules loaded | ||
run: module restore tps-gpu; module list | ||
- name: Configure | ||
run: cd tps-*; module restore tps-gpu; ./configure --enable-gpu-cuda CUDA_ARCH=sm_75 | ||
- name: Make | ||
run: cd tps-*; module restore tps-gpu; make -j 2 | ||
- name: TPS version | ||
run: cd tps-*; module restore tps-gpu; ./src/tps --version | ||
- name: Tests | ||
run: cd tps-*; module restore tps-gpu; make AM_COLOR_TESTS=yes check || (cat test/*.log; exit 1) | ||
- name: Distclean | ||
run: cd tps-*; make distclean | ||
- name: VPATH configure | ||
run: cd tps-*; mkdir build; cd build; module restore tps-gpu; ../configure --enable-gpu-cuda CUDA_ARCH=sm_75 | ||
- name: VPATH Make | ||
run: cd tps-*; cd build; module restore tps-gpu; make -j 2 | ||
- name: VPATH Tests | ||
run: cd tps-*; cd build; module restore tps-gpu; make AM_COLOR_TESTS=yes check || (cat test/*.log; exit 1) |
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,3 @@ | ||
Version 1.0 (19 Oct 2021) | ||
|
||
* initial release with standalone compressible flow and EM solvers |
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 |
---|---|---|
@@ -1,4 +1,18 @@ | ||
SUBDIRS = src test utils | ||
AUTOMAKE_OPTIONS = foreign | ||
ACLOCAL_AMFLAGS = -I m4 | ||
EXTRA_DIST = CHANGES LICENSE dist_version | ||
|
||
# -------------------------------------------------- | ||
# Revision control support for external distribution | ||
# -------------------------------------------------- | ||
|
||
if GIT_CHECKOUT | ||
dist_version: FORCE | ||
@GIT_REVISION@ > $(top_srcdir)/dist_version | ||
|
||
FORCE: | ||
endif | ||
|
||
dist-hook: | ||
rm -rf `find $(distdir)/ -name .gitattributes` |
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
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
Oops, something went wrong.