Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up precice-ci.yml #93

Merged
merged 4 commits into from
Apr 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
55 changes: 33 additions & 22 deletions .github/workflows/precice-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,42 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * 0'

jobs:
build:

name: Build ${{ matrix.build_type }}-dealii:${{ matrix.dealii_version }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
build_type: ["Debug"]
dealii_version: ["master", "v9.4.0"]

container:
image: dealii/dealii:${{ matrix.dealii_version }}-focal
options: --user root

steps:
- uses: actions/checkout@v2
- name: setup
run: |
command="sudo apt-get -y update && \
wget https://github.com/precice/precice/releases/download/v2.1.1/libprecice2_2.1.1_focal.deb && \
sudo apt-get -y install ./libprecice2_2.1.1_focal.deb && \
git clone https://github.com/${{ github.repository }} && \
cd code-gallery && \
git fetch origin ${{ github.ref }} && \
git checkout FETCH_HEAD && \
cd coupled_laplace_problem && \
cmake . && \
make && \
(./coupled_laplace_problem 2>&1 & ./fancy_boundary_condition >fbc.log) && \
sed -i '2d' solution-10.vtk && \
numdiff solution-10.vtk test_data/reference-10.vtk";

echo $command

docker pull dealii/dealii:v9.4.0-focal
docker run -t dealii/dealii:v9.4.0-focal /bin/sh -c "$command";
- name: Install preCICE
run: |
sudo apt-get -y update
wget https://github.com/precice/precice/releases/download/v2.4.0/libprecice2_2.4.0_focal.deb
sudo apt-get -y install ./libprecice2_2.4.0_focal.deb

- uses: actions/checkout@v3

- name: Compile
run: |
cd coupled_laplace_problem
cmake .
make

- name: Test
run: |
cd coupled_laplace_problem
(./coupled_laplace_problem 2>&1 & ./fancy_boundary_condition >fbc.log)
sed -i '2d' solution-10.vtk
numdiff solution-10.vtk test_data/reference-10.vtk