Skip to content

Commit

Permalink
Move file to /usr/local
Browse files Browse the repository at this point in the history
  • Loading branch information
MakisH committed Mar 20, 2024
1 parent 322fb5d commit f0fe55f
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/build-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,86 +89,86 @@ jobs:
OpenFOAMv2312)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2312-dev
echo "/usr/bin/openfoam2312" > openfoam_exec;;
echo "/usr/bin/openfoam2312" > /usr/local/openfoam_exec;;
OpenFOAMv2306)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2306-dev
echo "/usr/bin/openfoam2306" > openfoam_exec;;
echo "/usr/bin/openfoam2306" > /usr/local/openfoam_exec;;
OpenFOAMv2212)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2212-dev
echo "/usr/bin/openfoam2212" > openfoam_exec;;
echo "/usr/bin/openfoam2212" > /usr/local/openfoam_exec;;
OpenFOAMv2206)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2206-dev
echo "/usr/bin/openfoam2206" > openfoam_exec;;
echo "/usr/bin/openfoam2206" > /usr/local/openfoam_exec;;
OpenFOAMv2112)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2112-dev
echo "/usr/bin/openfoam2112" > openfoam_exec;;
echo "/usr/bin/openfoam2112" > /usr/local/openfoam_exec;;
OpenFOAMv2106)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2106-dev
echo "/usr/bin/openfoam2106" > openfoam_exec;;
echo "/usr/bin/openfoam2106" > /usr/local/openfoam_exec;;
OpenFOAMv2012)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2012-dev
echo "/usr/bin/openfoam2012" > openfoam_exec;;
echo "/usr/bin/openfoam2012" > /usr/local/openfoam_exec;;
OpenFOAMv2006)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam2006-dev
echo "/usr/bin/openfoam2006" > openfoam_exec;;
echo "/usr/bin/openfoam2006" > /usr/local/openfoam_exec;;
OpenFOAMv1912)
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install openfoam1912-dev
echo "/usr/bin/openfoam1912" > openfoam_exec;;
echo "/usr/bin/openfoam1912" > /usr/local/openfoam_exec;;
OpenFOAM10)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam10
echo ". /opt/openfoam10/etc/bashrc &&" > openfoam_exec;;
echo ". /opt/openfoam10/etc/bashrc &&" > /usr/local/openfoam_exec;;
OpenFOAM9)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam9
echo ". /opt/openfoam9/etc/bashrc &&" > openfoam_exec;;
echo ". /opt/openfoam9/etc/bashrc &&" > /usr/local/openfoam_exec;;
OpenFOAM8)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam8
echo ". /opt/openfoam8/etc/bashrc &&" > openfoam_exec;;
echo ". /opt/openfoam8/etc/bashrc &&" > /usr/local/openfoam_exec;;
OpenFOAM7)
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam7
echo ". /opt/openfoam7/etc/bashrc &&" > openfoam_exec;;
echo ". /opt/openfoam7/etc/bashrc &&" > /usr/local/openfoam_exec;;
OpenFOAM6)
echo "OpenFOAM 6 is only available on Ubuntu 18.04 or older."
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam6
echo ". /opt/openfoam6/etc/bashrc &&" > openfoam_exec;;
echo ". /opt/openfoam6/etc/bashrc &&" > /usr/local/openfoam_exec;;
OpenFOAM5)
echo "OpenFOAM 5 is only available on Ubuntu 18.04 or older."
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam5
echo ". /opt/openfoam5/etc/bashrc &&" > openfoam_exec;;
echo ". /opt/openfoam5/etc/bashrc &&" > /usr/local/openfoam_exec;;
*)
echo "I cannot find ${{ github.event.inputs.refAdapter }} in my known options."
exit 1;;
esac
- name: Build OpenFOAM-preCICE adapter
run: |
echo "OpenFOAM command: "
cat ./openfoam_exec
/bin/bash ./openfoam_exec ./Allwmake
cat /usr/local/openfoam_exec
/bin/bash /usr/local/openfoam_exec ./Allwmake
- name: Get tutorials
run: |
git clone https://github.com/precice/tutorials.git --branch ${{ github.event.inputs.branchTutorials }} --depth 1
Expand All @@ -177,10 +177,10 @@ jobs:
if ${{ github.event.inputs.runTutorialHeatedPlate }}
then
cd tutorials/flow-over-heated-plate/fluid-openfoam
/bin/bash ./openfoam_exec ./run.sh | tee fluid-openfoam.log 2>&1 &
/bin/bash /usr/local/openfoam_exec ./run.sh | tee fluid-openfoam.log 2>&1 &
PIDfluid=$!
cd ../solid-openfoam
/bin/bash ./openfoam_exec ./run.sh | tee solid-openfoam.log 2>&1
/bin/bash /usr/local/openfoam_exec ./run.sh | tee solid-openfoam.log 2>&1
wait $PIDfluid
fi
- name: Run tutorial quickstart
Expand All @@ -198,7 +198,7 @@ jobs:
echo "Manually changing from solver to motionSolver in dynamicMeshDict for compatibility with OpenFOAM 9."
sed -i 's/solver/motionSolver/g' constant/dynamicMeshDict
fi
/bin/bash ./openfoam_exec ./run.sh | tee fluid-openfoam.log 2>&1 &
/bin/bash /usr/local/openfoam_exec ./run.sh | tee fluid-openfoam.log 2>&1 &
PIDfluid=$!
cd ../solid-cpp
cmake . && make && ./run.sh | tee solid-cpp.log 2>&1
Expand All @@ -209,10 +209,10 @@ jobs:
if ${{ github.event.inputs.runTutorialPartitionedPipe }}
then
cd tutorials/partitioned-pipe/fluid1-openfoam-pimplefoam
/bin/bash ./openfoam_exec ./run.sh | tee fluid1-openfoam-pimplefoam.log 2>&1 &
/bin/bash /usr/local/openfoam_exec ./run.sh | tee fluid1-openfoam-pimplefoam.log 2>&1 &
PIDfluid=$!
cd ../fluid2-openfoam-pimplefoam
/bin/bash ./openfoam_exec ./run.sh | tee fluid2-openfoam-pimplefoam.log 2>&1 &
/bin/bash /usr/local/openfoam_exec ./run.sh | tee fluid2-openfoam-pimplefoam.log 2>&1 &
wait $PIDfluid
fi
- name: Archive logs
Expand Down

0 comments on commit f0fe55f

Please sign in to comment.