Bump actions/checkout from 3 to 4 #535
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: ASTE CI | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
branches: [master, develop] | |
concurrency: | |
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{github.event_name == 'pull_request'}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: precice/precice:develop | |
timeout-minutes: 30 | |
env: | |
CXX_FLAGS: "-Werror -Wall -Wextra -Wno-unused-parameter" | |
CTEST_OUTPUT_ON_FAILURE: "Yes" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup system | |
run: | | |
apt-get -y update && apt-get -y upgrade | |
apt-get install -y python3-pip pkg-config time | |
pip3 install --upgrade pip | |
- name: install VTK | |
run: | | |
apt-get -y install libvtk9-dev libvtk9-qt-dev | |
- name: install example dependencies | |
run: | | |
python3 -m pip install sympy scipy jinja2 | |
- name: prepare directories | |
run: | | |
mkdir build_gcc build_clang | |
- name: build aste gcc | |
working-directory: build_gcc | |
env: | |
CC: gcc | |
CXX: g++ | |
run: | | |
cmake .. | |
cmake --build . | |
- name: Adjust user rights | |
run: chown -R $PRECICE_USER . | |
- name: run test gcc | |
working-directory: build_gcc | |
run: | | |
su -c "ctest" $PRECICE_USER | |
- name: install clang | |
run: | | |
apt-get -y install clang | |
- name: build aste clang | |
working-directory: build_clang | |
env: | |
CC: clang | |
CXX: clang++ | |
run: | | |
cmake .. | |
cmake --build . | |
- name: Adjust user rights | |
run: chown -R $PRECICE_USER . | |
- name: run test clang | |
working-directory: build_clang | |
run: | | |
su -c "ctest" $PRECICE_USER |