-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* draft new setup * fix++ * fix++ * fix++ --------- Co-authored-by: tnagler <thomas.nagler@tum.de>
- Loading branch information
Showing
2 changed files
with
120 additions
and
62 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: 'Install Dependencies' | ||
description: 'Install Eigen, Boost, and other dependencies required by kde1d' | ||
inputs: | ||
os: | ||
description: 'The operating system to install dependencies for' | ||
required: false | ||
default: 'ubuntu-latest' | ||
platform: | ||
description: 'The platform to install dependencies for' | ||
required: false | ||
default: 'x64' | ||
boost: | ||
description: 'Whether to install Boost' | ||
required: false | ||
default: true | ||
boost_install_dir: | ||
description: 'The directory to install Boost to' | ||
required: false | ||
default: '/home/runner/work' | ||
boost_version: | ||
description: 'The version of Boost to install' | ||
required: false | ||
default: '1.84.0' | ||
eigen: | ||
description: 'Whether to install Eigen' | ||
required: false | ||
default: true | ||
eigen_install_dir: | ||
description: 'The directory to install Eigen to' | ||
required: false | ||
default: '/home/runner/work' | ||
eigen_version: | ||
description: 'The version of Eigen to install' | ||
required: false | ||
default: '3.4.0' | ||
lcov: | ||
description: 'Whether to install lcov' | ||
required: false | ||
default: true | ||
update_compilers_ubuntu: | ||
description: 'Whether to update the compilers on Ubuntu' | ||
required: false | ||
default: true | ||
outputs: | ||
BOOST_ROOT: | ||
description: 'The path to the boost installation, e.g. to be used in CMake' | ||
value: ${{ steps.boost.outputs.BOOST_ROOT }} | ||
EIGEN3_ROOT: | ||
description: 'The path to the eigen installation, e.g. to be used in CMake' | ||
value: ${{ inputs.eigen_install_dir }}/eigen | ||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Update compilers on ubuntu | ||
if: ${{ inputs.update_compilers_ubuntu }} | ||
run: | | ||
if [ "${{ inputs.os }}" == "ubuntu-latest" ]; then | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends -y g++ clang | ||
sudo apt-get autoremove | ||
fi | ||
shell: bash | ||
|
||
- name: Install boost ${{inputs.boost_version}} | ||
if: ${{ inputs.boost }} | ||
id: boost | ||
uses: MarkusJx/install-boost@v2.3.1 | ||
with: | ||
boost_version: ${{inputs.boost_version}} | ||
boost_install_dir: ${{ inputs.boost_install_dir }} | ||
|
||
- name: Install Eigen ${{inputs.eigen_version}} | ||
if: ${{ inputs.eigen }} | ||
run: | | ||
if [ "${{ inputs.os }}" != "windows-latest" ]; then | ||
git clone --depth 1 --branch ${{inputs.eigen_version}} https://gitlab.com/libeigen/eigen.git/ ${{runner.temp}}/eigen | ||
cmake ${{runner.temp}}/eigen -B ${{runner.temp}}/eigen/build -DCMAKE_INSTALL_PREFIX=${{ inputs.eigen_install_dir }} | ||
make install -C ${{runner.temp}}/eigen/build | ||
else | ||
cmd "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ inputs.platform }} | ||
choco install eigen --version="${{inputs.eigen_version}}" | ||
fi | ||
shell: bash | ||
|
||
- name: Install lcov | ||
if: ${{ inputs.lcov }} | ||
run: | | ||
if [ "${{ inputs.os }}" == "ubuntu-latest" ]; then | ||
sudo apt-get install --no-install-recommends -y lcov | ||
fi | ||
shell: bash |
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