Skip to content

GMG: fix order of RHS correction #565

GMG: fix order of RHS correction

GMG: fix order of RHS correction #565

Workflow file for this run

name: linux
on: [push, pull_request]
concurrency:
group: ${{ github.actor }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-nounity:
#linux build with unity/precompiled headers disabled
name: no-unity-build
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: setup
run: |
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ginggs/deal.ii-9.3.2-backports
sudo apt-get update
sudo apt-get install -yq --no-install-recommends libdeal.ii-dev
- name: compile
run: |
mkdir build-no-unity
cd build-no-unity
cmake -D ASPECT_PRECOMPILE_HEADERS=OFF -D ASPECT_UNITY_BUILD=OFF -D CMAKE_CXX_FLAGS='-Werror' ..
make -j 2
./aspect --test
linux:
#linux build including indent and documentation
name: indent+documentation
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: setup
run: |
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ginggs/deal.ii-9.3.2-backports
sudo apt-get update
sudo apt-get install -yq --no-install-recommends texlive-plain-generic texlive-base texlive-latex-recommended texlive-latex-base texlive-fonts-recommended texlive-bibtex-extra lmodern texlive-latex-extra texlive-science graphviz python3-pip python-setuptools libdeal.ii-dev doxygen
doxygen --version
wget https://github.com/tjhei/astyle/releases/download/v2.04/astyle_2.04_linux.tar.gz
tar xf astyle_2.04_linux.tar.gz
cd astyle/build/gcc && make
sudo USER=root make install
cd
rm -rf astyle*
astyle --version
- name: indent
run: |
./contrib/utilities/indent
git diff --exit-code
- name: compile
run: |
mkdir build
cd build
cmake -D ASPECT_PRECOMPILE_HEADERS=ON -D ASPECT_UNITY_BUILD=ON -D CMAKE_CXX_FLAGS='-Werror' ..
make -j 2
./aspect --test
- name: doc
run: |
cd doc
export OMPI_MCA_btl="self,vader"
./update_parameters.sh $GITHUB_WORKSPACE/build/aspect
make manual.pdf
- name: archive
uses: actions/upload-artifact@v1
with:
name: manual.log
path: doc/manual/manual.log
dealii-dev:
# linux build with deal.II dev
name: test-dealii-dev
runs-on: [ubuntu-18.04]
container:
image: dealii/dealii:master-focal
options: --user 0
steps:
- uses: actions/checkout@v2
- name: compile
run: |
mkdir build
cd build
cmake \
-G 'Ninja' \
-D CMAKE_CXX_FLAGS='-Werror' \
-D ASPECT_TEST_GENERATOR='Ninja' \
-D ASPECT_PRECOMPILE_HEADERS=ON \
-D ASPECT_UNITY_BUILD=ON \
..
ninja
cat detailed.log
./aspect -v
./aspect --test
tests:
#linux build including tests
name: tests
runs-on: [ubuntu-latest]
container: geodynamics/aspect-tester:focal-dealii-9.3-v2
steps:
- uses: actions/checkout@v2
- name: compile
run: |
mkdir build
cd build
cmake \
-G 'Ninja' \
-D CMAKE_CXX_FLAGS='-Werror' \
-D ASPECT_ADDITIONAL_CXX_FLAGS='-O3' \
-D ASPECT_TEST_GENERATOR='Ninja' \
-D ASPECT_PRECOMPILE_HEADERS=ON \
-D ASPECT_UNITY_BUILD=ON \
-D ASPECT_RUN_ALL_TESTS='ON' \
..
ninja
./aspect --test
- name: prebuild tests
run: |
# prebuilding tests...
cd build/tests
ninja -k 0 tests || true
- name: report test results
continue-on-error: true
run: |
cd build
ctest \
--no-compress-output \
--test-action Test \
--output-on-failure || touch test_run_failed
- name: write test results
continue-on-error: true
run: |
cd build
ninja generate_reference_output
git diff ../tests > changes-test-results.diff
- name: archive test results
uses: actions/upload-artifact@v2
with:
name: changes-test-results.diff
path: build/changes-test-results.diff
- name: check test results
run: |
if [ -f build/test_run_failed ] || [ -s build/changes-test-results.diff ]; then
exit 1
else
exit 0
fi