Cache VTK build in ASTE CI #666
Workflow file for this run
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] | |
schedule: | |
- cron: '0 8 * * 2' # run once in a week (here Tue at 8am) | |
concurrency: | |
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{github.event_name == 'pull_request'}} | |
jobs: | |
build: | |
name: ${{ format('{0} {1}', matrix.CXX, matrix.TYPE) }} | |
runs-on: ubuntu-latest | |
container: | |
image: precice/ci-aste:latest | |
options: --shm-size=2gb | |
defaults: | |
run: | |
shell: "bash --login -eo pipefail {0}" | |
strategy: | |
fail-fast: false | |
matrix: | |
CXX: ["clang++", "g++"] | |
TYPE: ["Debug", "Release"] | |
env: | |
CXX: ${{ matrix.CXX }} | |
CXX_FLAGS: "-Werror -Wall -Wextra -Wno-unused-parameter" | |
CTEST_OUTPUT_ON_FAILURE: "Yes" | |
steps: | |
- name: setup system | |
run: | | |
apt-get -y update && apt-get -y upgrade | |
apt-get install -y python3-pip pkg-config time clang | |
pip3 install --upgrade pip | |
- uses: actions/checkout@v4 | |
- name: install example dependencies | |
run: | | |
python3 -m pip install -r requirements.txt | |
- name: prepare build directory | |
run: | | |
mkdir build | |
- name: build aste | |
working-directory: build | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.TYPE }} .. | |
cmake --build . | |
- name: Adjust user rights | |
run: chown -R precice . | |
- name: run test | |
working-directory: build | |
run: | | |
su -c "ctest" precice |