Skip to content

refactor due to clang support (#24) #205

refactor due to clang support (#24)

refactor due to clang support (#24) #205

Workflow file for this run

# SPDX-FileCopyrightText: 2022 The Ikarus Developers [email protected]
# SPDX-License-Identifier: LGPL-3.0-or-later
name: Debian
on:
push:
paths-ignore:
- 'docs/**'
- '.github/workflows/ghpages.yml'
jobs:
Build:
name: ${{ matrix.config.name }}
runs-on: ubuntu-latest
container:
image: ikarusproject/ikarus:latest
options: --memory-swap="20g" --memory="20g" --cpus="2"
strategy:
fail-fast: false
matrix:
config:
# - {
# name: "Clang-Debug",
# config: Debug,
# compilerC: clang-12,
# compilerCxx: clang++-12,
# lib: "-stdlib=libc++",
# }
- {
name: "Clang-Release",
config: Release,
compilerC: clang-16,
compilerCxx: clang++-16,
lib: "-stdlib=libc++",
}
# - {
# name: "GCC-Debug",
# config: Debug,
# compilerC: gcc-12,
# compilerCxx: g++-12,
# lib: ""
# }
- {
name: "GCC-Release",
config: Release,
compilerC: gcc-12,
compilerCxx: g++-12,
lib: ""
}
steps:
- uses: actions/checkout@v2
with:
path: 'repo'
- name: Build
working-directory: ./repo
run: |
mkdir cmake-build-${{ matrix.config.config }}
cd cmake-build-${{ matrix.config.config }}
cmake ../ -DCMAKE_BUILD_TYPE=${{ matrix.config.config }} -G "Unix Makefiles" -DCMAKE_C_COMPILER=${{ matrix.config.compilerC }} -DCMAKE_CXX_COMPILER=${{ matrix.config.compilerCxx }}
for i in $( find ../src -maxdepth 1 -name 'iks*'| sed -e 's/\(.cpp\)*$//g' | sed "s|../src/||" ); do cmake --build . --parallel 2 --target "$i"; done;
- name: Run all examples
working-directory: ./repo/cmake-build-${{ matrix.config.config }}/src
run: |
echo "Testing example: iks001" && ./iks001_computePi;
echo "Testing example: iks002" && ./iks002_cantileverBeamOneDGrid;
echo "Testing example: iks003" && ./iks003_incompressibleLinearElasticity;
echo "Testing example: iks004" && ./iks004_kirchhoffPlate;
echo "Testing example: iks005" && ./iks005_newtonRaphson;
echo "Testing example: iks006" && ./iks006_nonlinear2DSolid;
echo "Testing example: iks007" && ./iks007_vonMisesTruss;
echo "Testing example: iks008" && ./iks008_cooksMembrane auxiliaryFiles/iks008_cooksMembrane.parset;
# for i in $( find . -maxdepth 1 -name 'iks*'| sed -e 's/\(.cpp\)*$//g' | sed "s|./||" ); while [! -f auxiliaryFiles/"$i".parset] do echo "Test example: "$i"" &&./"$i"; done;