Update actions and cmdstan versions. #19
This file contains hidden or 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: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
matrix: | |
cmdstanVersion: | |
- "2.35.0" | |
- "2.34.1" | |
- "2.34.0" | |
- "2.33.1" | |
- "2.33.0" | |
- "2.32.2" | |
- "2.32.1" | |
- "2.32.0" | |
- "2.31.0" | |
- "2.30.1" | |
- "2.30.0" | |
os: | |
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- macos-12 | |
- macos-13 | |
- macos-14 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.10" | |
- name: Install cmdstanpy | |
run: pip install cmdstanpy | |
- name: Compile cmdstan | |
run: python -m cmdstanpy.install_cmdstan --version ${{ matrix.cmdstanVersion }} --verbose | |
- name: Build release artifact | |
run: tar -czvf cmdstan-${{ matrix.os }}-${{ matrix.cmdstanVersion }}.tar.gz -C ~/.cmdstan cmdstan-${{ matrix.cmdstanVersion }} | |
- name: Upload the artifact | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'tillahoffmann' | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: cmdstan-${{ matrix.os }}-${{ matrix.cmdstanVersion }} | |
files: cmdstan-${{ matrix.os }}-${{ matrix.cmdstanVersion }}.tar.gz | |
body: cmdstan-${{ matrix.cmdstanVersion }} compiled on ${{ matrix.os }}. |