# Moving from Travis to Github CI

**URL:** <https://discourse.julialang.org/t/moving-from-travis-to-github-ci/53361>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 14, 2021, 10:13pm UTC](https://discourse.julialang.org/t/moving-from-travis-to-github-ci/53361 "2021-01-14T22:13:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![goedman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goedman/32/217_2.png) [@goedman](https://discourse.julialang.org/u/goedman)\
**Post date:** [January 14, 2021, 10:13pm UTC](https://discourse.julialang.org/t/moving-from-travis-to-github-ci/53361/1 "2021-01-14T22:13:36Z")

</div>

I’m trying to build Stan’s cmdstan binary while using Github CI. On Travis this is possible using:

```julia
env:
  - JULIA_CMDSTAN_HOME="$HOME/cmdstan-2.24.0/"
  
before_install:
  - OLDWD=`pwd`
  - cd ~
  - wget https://github.com/stan-dev/cmdstan/releases/download/v2.24.0/cmdstan-2.24.0.tar.gz
  - tar -xzpf cmdstan-2.24.0.tar.gz
  - make -C $JULIA_CMDSTAN_HOME build
  - cd $OLDWD

```

Could I somehow incorporate this in GitHub CI?

Thanks for your help!

Rob

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [January 14, 2021, 10:34pm UTC](https://discourse.julialang.org/t/moving-from-travis-to-github-ci/53361/2 "2021-01-14T22:34:55Z")

</div>

Yes, you can run whatever you want with a [`run`](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun) step

```yaml
env:
  JULIA_CMDSTAN_HOME:"$HOME/cmdstan-2.24.0/"

[...]

run: |
  OLDWD=`pwd`
  cd ~
  wget https://github.com/stan-dev/cmdstan/releases/download/v2.24.0/cmdstan-2.24.0.tar.gz
  tar -xzpf cmdstan-2.24.0.tar.gz
  make -C $JULIA_CMDSTAN_HOME build
  cd $OLDWD

```

---

<div class="post-metadata">

**Author:** ![goedman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goedman/32/217_2.png) [@goedman](https://discourse.julialang.org/u/goedman)\
**Post date:** [January 15, 2021, 4:47pm UTC](https://discourse.julialang.org/t/moving-from-travis-to-github-ci/53361/3 "2021-01-15T16:47:49Z")

</div>

Wow, thanks, it works! Took some experimenting but with your other post on using as a Julia shell I was able to get it to work!

Update: For those interested, I’ve been testing with the Github CI script for Stan.jl.
