stan icon indicating copy to clipboard operation
stan copied to clipboard

Documentation for CI integration

Open TristanCacqueray opened this issue 3 years ago • 1 comments

How would you recommend to use stan as a continuous integration test? Assuming this is correct, could we add such snippets to the README?

      - run: cabal v2-install stan --install-method=copy --overwrite-policy=always
      - run: stan report
      - uses: actions/upload-artifact@v2
        with:
          name: stan-report
          path: ./stan.html

TristanCacqueray avatar Jun 21 '21 20:06 TristanCacqueray

Hi @TristanCacqueray! Using Stan on CI easily would be really nice indeed. We attempted to implement a separate GitHub Action specifically for running Stan so users can run Stan easily on their projects. Still, it turned out that simpler Docker-based actions can't work for Stan.

  • https://github.com/kowainik/stan-action

Your steps look correct to me 👍🏻 It would be nice to download Stan directly from releases instead of building (so it would be faster) though CI cache probably helps with that. I'm not sure how v2-install behaves if you have a freeze file produced earlier on CI and try to build Stan, which can have a different set of dependencies. You probably also don't want to run this for each combination of GHC and OS if you use matrix.

chshersh avatar Aug 03 '21 12:08 chshersh