Coder Social home page Coder Social logo

helics-action's People

Contributors

nightlark avatar phlptp avatar pre-commit-ci[bot] avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

nightlark

helics-action's Issues

Add option to install HELICS from source

GMLC-TDC/helics-action/install needs an input option (install_from_source maybe) added to build HELICS from the released source archive instead of an installer. This is a composite run step action located in https://github.com/GMLC-TDC/helics-action/blob/main/install/action.yml that will need changes.

When the input is provided, it should be updated to download the correct version of the source archive (https://github.com/GMLC-TDC/HELICS/releases/download/v3.0.1/Helics-v3.0.1-source.tar.gz has all the submodules included, the default GitHub generated ones do not).

Some dependencies may need to be installed depending on the platform:

When running cmake configure, the following options should probably be given: -DCMAKE_BUILD_TYPE=Release -DHELICS_BUILD_CXX_SHARED_LIB=ON -DHELICS_ZMQ_SUBPROJECT=ON -DSTATIC_STANDARD_LIB=static -DHELICS_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DHELICS_BUILD_APP_EXECUTABLES=ON -DHELICS_BUILD_APP_LIBRARY=ON -DCMAKE_INSTALL_PREFIX=${prefix}

And then cmake build and install can be run:

cmake --build . --config Release
cmake --build . --config Release --target install

https://docs.helics.org/en/latest/user-guide/installation/build_from_source.html has most of the information on building HELICS from source.

Set up pre-commit hooks

Run a few hooks in this repository:

  • shellcheck
  • shfmt
  • yaml formatting
  • markdown linter/formatting

Build HELICS from source using Ninja

Add a step to install ninja: - uses: seanmiddleditch/gha-setup-ninja@856654e80dd21909aec244cd01bb96e5c841d64f

Possibly to a temporary destination directory that can be deleted after the workflow runs using the destination input.

Refactor helics-action/install

helics-action/install is a bit messy with everything in a single yaml file/step. Based on some trial and error, it should be possible to move most of the content from the inline scripts in https://github.com/GMLC-TDC/helics-action/tree/main/install to one or more bash scripts. The steps can then call those scripts by using ${{ github.action_path }} to get the path where GitHub checks out this action to when running it.

Shellcheck should be run on the scripts to identify + fix issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.