Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 17 additions & 14 deletions .github/workflows/build-BinaryBH-example.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,54 @@
name: Build BinaryBH example with TwoPunctures

on:
push:
push:
schedule:
# Run once per month
- cron: '0 0 1 * *'

jobs:
build-BinaryBH-example:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
CHOMBO_HOME: ${{ github.workspace }}/Chombo/lib
TWOPUNCTURES_SOURCE: ${{ github.workspace }}/TwoPunctures/Source
OMP_NUM_THREADS: 1

steps:
- name: Checkout Chombo
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
repository: GRChombo/Chombo
path: Chombo

- name: Checkout GRChombo
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
repository: GRChombo/GRChombo
path: GRChombo

- name: Checkout TwoPunctures
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
path: TwoPunctures

- name: Install Chombo dependencies
- name: Install Chombo and TwoPunctures dependencies
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install csh gfortran-10 g++-10 cpp-10 libhdf5-dev libhdf5-openmpi-dev openmpi-bin libblas-dev liblapack-dev libgetopt-complete-perl

- name: Set Compilers
run: |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-10 100
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-10 100
sudo apt-get -y --no-install-recommends install \
csh \
libhdf5-dev \
libhdf5-openmpi-dev \
openmpi-bin \
libblas-dev \
liblapack-dev \
libgetopt-complete-perl \
libgsl-dev

- name: Build Chombo
run: |
cp $GITHUB_WORKSPACE/GRChombo/InstallNotes/MakeDefsLocalExamples/ubuntu-gcc.Make.defs.local $CHOMBO_HOME/mk/Make.defs.local
cp $GITHUB_WORKSPACE/GRChombo/InstallNotes/MakeDefsLocalExamples/ubuntu-gcc.Make.defs.local \
$CHOMBO_HOME/mk/Make.defs.local
make -j 4 AMRTimeDependent AMRTools BaseTools BoxTools
working-directory: ${{ env.CHOMBO_HOME }}

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Style

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
cpp-linter:
name: clang-format
runs-on: ubuntu-latest
env:
LLVM_VERSION: '19'

steps:
- name: Checkout TwoPunctures
uses: actions/checkout@v6


- name: Run clang-format on modified files
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: 'file' # Clang-Format style
tidy-checks: '-*' # Don't run clang-tidy
version: ${{ env.LLVM_VERSION }}
files-changed-only: true
lines-changed-only: false
# Write a comment to the PR with the output
step-summary: 'true' # Print output in the worflow job summary

- name: Fail job if checks fail
if: steps.linter.outputs.checks-failed > 0
run: exit 1

15 changes: 0 additions & 15 deletions .github/workflows/test-clang-format.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TwoPunctures (GRChombo)

![Build BinaryBH example with TwoPunctures](https://github.com/GRChombo/TwoPunctures/workflows/Build%20BinaryBH%20example%20with%20TwoPunctures/badge.svg)
![Check Clang Format](https://github.com/GRChombo/TwoPunctures/workflows/Check%20Clang%20Format/badge.svg)
![Style](https://github.com/GRChombo/TwoPunctures/workflows/Style/badge.svg)

This repository originates from the
[standalone TwoPunctures](https://bitbucket.org/relastro/twopunctures-standalone)
Expand Down