Merge branch 'main' of github.com:d-SEAMS/seams-core #168
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 d-SEAMS and test" | |
on: [push, pull_request] | |
jobs: | |
build_pkg: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Conda environment from environment.yml | |
uses: mamba-org/provision-with-micromamba@main | |
- name: Build application with cmake | |
shell: bash -l {0} | |
run: | | |
luarocks install luafilesystem | |
mkdir bbdir | |
cd bbdir | |
export CXXFLAGS="-I$CONDA_PREFIX/include/eigen3 -I$CONDA_PREFIX/include/" | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=YES -DCMAKE_INSTALL_PREFIX:PATH=$CONDA_PREFIX ../ | |
make -j$(nproc) | |
make install | |
- name: Run a test | |
shell: bash -l {0} | |
run: | | |
$CONDA_PREFIX/bin/yodaStruct -c lua_inputs/config.yml |