From f2f8cd2ec81e2f7efa25b223625bccb236782fb8 Mon Sep 17 00:00:00 2001 From: Rob J Goedman Date: Fri, 15 Jan 2021 13:57:40 -0700 Subject: [PATCH] Rel 2.1.3 - Enable Github CI testing --- .github/workflows/CI.yml | 26 ++++++++++++++++++++++++-- Project.toml | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c4dd032..6f8660e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,6 +6,9 @@ on: - master pull_request: +env: + JULIA_CMDSTAN_HOME: "/home/worker/cmdstan-2.25.0/" + jobs: test: runs-on: ${{ matrix.os }} @@ -14,13 +17,13 @@ jobs: matrix: version: - '1' - #- nightly + - nightly os: - ubuntu-latest #- macOS-latest #- windows-latest arch: - - x86 + #- x86 - x64 exclude: - os: windows-latest @@ -28,6 +31,23 @@ jobs: - os: macOS-latest arch: x86 steps: + - name: Install extra dependency on main branch + shell: julia --project=. {0} + run: | + println(pwd()) + println(ENV["JULIA_CMDSTAN_HOME"]) + println(ENV["HOME"]) + - run: | + OLDWD=`pwd` + cd ~ + pwd + wget https://github.com/stan-dev/cmdstan/releases/download/v2.25.0/cmdstan-2.25.0.tar.gz + tar -xzpf cmdstan-2.25.0.tar.gz + ls -lia . + make -C $JULIA_CMDSTAN_HOME build + cd $OLDWD + env: + JULIA_CMDSTAN_HOME: "/home/runner/cmdstan-2.25.0/" - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: @@ -45,6 +65,8 @@ jobs: ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest + env: + JULIA_CMDSTAN_HOME: "/home/runner/cmdstan-2.25.0/" - uses: julia-actions/julia-processcoverage@v1 if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 - uses: codecov/codecov-action@v1 diff --git a/Project.toml b/Project.toml index 5bc8e93..21a1916 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StanModels" uuid = "fb740163-aa3c-59c1-9c12-c3f890714cde" authors = ["Rob J Goedman