Skip to content

Commit

Permalink
build-custom: Replace preCICE Debian package with setup-precice-action
Browse files Browse the repository at this point in the history
  • Loading branch information
MakisH committed Mar 20, 2024
1 parent 62a7384 commit 5b3ca50
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:
- OpenFOAM5
versionpreCICE:
description: 'Version of preCICE to build with'
default: '2.5.0'
default: '3.0.0'
required: true
runTutorialHeatedPlate:
description: Run tutorial flow-over-heated-plate
Expand Down Expand Up @@ -161,20 +161,9 @@ jobs:
exit 1;;
esac
- name: Install preCICE (no cache)
run: |
if [ "${{ github.event.inputs.virtualEnvironment }}" == "ubuntu-22.04" ]
then
wget "https://github.com/precice/precice/releases/download/v${{ github.event.inputs.versionpreCICE }}/libprecice2_${{ github.event.inputs.versionpreCICE }}_jammy.deb"
sudo apt install "./libprecice2_${{ github.event.inputs.versionpreCICE }}_jammy.deb"
elif [ "${{ github.event.inputs.virtualEnvironment }}" == "ubuntu-20.04" ]
then
wget "https://github.com/precice/precice/releases/download/v${{ github.event.inputs.versionpreCICE }}/libprecice2_${{ github.event.inputs.versionpreCICE }}_focal.deb"
sudo apt install "./libprecice2_${{ github.event.inputs.versionpreCICE }}_focal.deb"
elif [ "${{ github.event.inputs.virtualEnvironment }}" == "ubuntu-18.04" ]
then
wget "https://github.com/precice/precice/releases/download/v${{ github.event.inputs.versionpreCICE }}/libprecice2_${{ github.event.inputs.versionpreCICE }}_bionic.deb"
sudo apt install "./libprecice2_${{ github.event.inputs.versionpreCICE }}_bionic.deb"
fi
uses: precice/setup-precice-action@main
with:
precice-version: ${{ github.event.inputs.versionpreCICE }}
- name: Build OpenFOAM-preCICE adapter
run: |
${{steps.installOpenFOAM.outputs.openfoam_exec}} ./Allwmake
Expand Down

0 comments on commit 5b3ca50

Please sign in to comment.