Skip to content

Bugfix for adaptive timestepping #4196

Bugfix for adaptive timestepping

Bugfix for adaptive timestepping #4196

Workflow file for this run

name: MacOS
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-macos
cancel-in-progress: true
jobs:
MacOS-Clang:
name: Apple Clang@11.0
runs-on: macos-latest
# env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual"}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Dependencies
run: Submodules/AMReX/.github/workflows/dependencies/dependencies_mac.sh
- name: Set Up Cache
uses: actions/cache@v4
with:
path: ~/Library/Caches/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: Configure Project and Generate Build System
run: |
cmake \
-B${{runner.workspace}}/ERF/build \
-DBUILD_SHARED_LIBS:BOOL=TRUE \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_BUILD_TYPE:STRING=Debug \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DERF_DIM:STRING=3 \
-DERF_ENABLE_MPI:BOOL=TRUE \
-DERF_ENABLE_TESTS:BOOL=TRUE \
-DERF_ENABLE_ALL_WARNINGS:BOOL=TRUE \
-DERF_ENABLE_FCOMPARE:BOOL=TRUE \
${{github.workspace}};
- name: Compile and Link
run: |
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
export CCACHE_MAXSIZE=250M
export CCACHE_SLOPPINESS=time_macros
ccache -z
cmake --build ${{runner.workspace}}/ERF/build --parallel 2 --verbose
du -hs ~/Library/Caches/ccache
ccache -s
- name: CMake Tests # see file ERF/Tests/CTestList.cmake
run: |
ctest -L regression -VV
working-directory: ${{runner.workspace}}/ERF/build
save_pr_number:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
retention-days: 1