Release v3.0.1 #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{github.event_name == 'pull_request'}} | |
jobs: | |
build: | |
name: ${{ format('{0} {1}', matrix.IMAGE, matrix.TYPE) }} | |
runs-on: ubuntu-latest | |
container: 'precice/ci-${{ matrix.IMAGE }}:latest' | |
defaults: | |
run: | |
shell: "bash --login -eo pipefail {0}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- IMAGE: 'ubuntu-2204' | |
TYPE: Debug | |
- IMAGE: 'ubuntu-2204' | |
TYPE: Release | |
CARGOFLAG: --release | |
- IMAGE: 'ubuntu-2404' | |
TYPE: Debug | |
- IMAGE: 'ubuntu-2404' | |
TYPE: Release | |
CARGOFLAG: --release | |
steps: | |
- name: Update APT | |
run: apt-get -yy update && apt-get -yy upgrade | |
- name: Install Cargo | |
run: apt-get -yy install cargo | |
- name: Install preCICE | |
run: | | |
wget -q -O libprecice.deb https://github.com/precice/precice/releases/download/v3.0.0/libprecice3_3.0.0_$(lsb_release -sc).deb | |
apt-get -yy install ./libprecice.deb | |
rm libprecice.deb | |
- uses: actions/checkout@v4 | |
- name: Build bindings | |
run: cargo build $CARGOFLAG | |
- name: Build solverdummy | |
run: cargo build $CARGOFLAG --example=solverdummy | |
- name: Run solverdummies | |
run: | | |
cargo run $CARGOFLAG --example=solverdummy -- examples/precice-config.xml SolverOne & | |
cargo run $CARGOFLAG --example=solverdummy -- examples/precice-config.xml SolverTwo |