Skip to content

Commit

Permalink
Merge pull request #211 from exasim-project/ci/build_adapter_w_altern…
Browse files Browse the repository at this point in the history
…_branch

build adapter with alternative branch if possible, see #211
  • Loading branch information
greole authored Dec 20, 2024
2 parents b7ea12f + 4d84260 commit 7b8fd9f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/build_adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,20 @@ jobs:
CXX: g++
runs-on: ubuntu-24.04
steps:
- name: Select branch to checkout
run: |
if [[ $(git ls-remote --heads https://github.com/exasim-project/FoamAdapter ${{ github.head_ref }}) ]]
then
echo checkout=${{ env.branch }} >> $GITHUB_ENV
else
echo checkout=main >> $GITHUB_ENV
fi
- name: Checkout FoamAdapter
uses: actions/checkout@v4
with:
repository: exasim-project/FoamAdapter
ref: '${{ env.branch }}'

- name: Checkout NeoFOAM submodule
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion test/finiteVolume/cellCentred/operator/divOperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TEST_CASE("DivOperator")
);

std::string execName = std::visit([](auto e) { return e.print(); }, exec);
// TODO: take 1d mesh
// TODO take 1d mesh
NeoFOAM::UnstructuredMesh mesh = NeoFOAM::createSingleCellMesh(exec);
auto surfaceBCs = fvcc::createCalculatedBCs<fvcc::SurfaceBoundary<NeoFOAM::scalar>>(mesh);

Expand Down

0 comments on commit 7b8fd9f

Please sign in to comment.