Rel 10.4.3 - Updates for cmdstan-2.33.0 #234
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
CMDSTAN: "/home/worker/cmdstan-2.32.0/" | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.version == 'nightly' }} | |
strategy: | |
matrix: | |
version: | |
- '1' | |
#- nightly | |
os: | |
- ubuntu-latest | |
#- macOS-latest | |
#- windows-latest | |
arch: | |
#- x86 | |
- x64 | |
exclude: | |
- os: windows-latest | |
arch: x86 | |
- os: macOS-latest | |
arch: x86 | |
steps: | |
- name: Install extra dependency on main branch | |
shell: julia --project=. {0} | |
run: | | |
println(pwd()) | |
println(ENV["CMDSTAN"]) | |
println(ENV["HOME"]) | |
- run: | | |
OLDWD=`pwd` | |
cd ~ | |
pwd | |
wget https://github.com/stan-dev/cmdstan/releases/download/v2.32.0/cmdstan-2.32.0.tar.gz | |
tar -xzpf cmdstan-2.32.0.tar.gz | |
ls -lia . | |
ls -lia ./cmdstan-2.32.0 | |
ls -lia ./cmdstan-2.32.0/make | |
touch ./cmdstan-2.32.0/make/local | |
echo "STAN_THREADS=true" > ./cmdstan-2.32.0/make/local | |
make -C $CMDSTAN build | |
cd $OLDWD | |
env: | |
CMDSTAN: "/home/runner/cmdstan-2.32.0/" | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: actions/cache@v1 | |
env: | |
cache-name: cache-artifacts | |
with: | |
path: ~/.julia/artifacts | |
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | |
restore-keys: | | |
${{ runner.os }}-test-${{ env.cache-name }}- | |
${{ runner.os }}-test- | |
${{ runner.os }}- | |
- uses: julia-actions/julia-buildpkg@latest | |
- uses: julia-actions/julia-runtest@latest | |
env: | |
CMDSTAN: "/home/runner/cmdstan-2.32.0/" | |
- uses: julia-actions/julia-processcoverage@v1 | |
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 | |
- uses: codecov/codecov-action@v1 | |
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 | |
with: | |
file: lcov.info | |
- uses: coverallsapp/github-action@master | |
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: lcov.info |