Skip to content

Commit 16f604b

Browse files
committed
Use os version in GHA
1 parent 0e5c378 commit 16f604b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CmdStanPy
2-
2+
33
on:
44
push:
55
branches:
@@ -14,7 +14,7 @@ on:
1414
description: 'Version to test'
1515
required: false
1616
default: 'latest'
17-
17+
1818
jobs:
1919
get-cmdstan-version:
2020
# get the latest cmdstan version to use as part of the cache key
@@ -81,11 +81,15 @@ jobs:
8181
- name: Show libraries
8282
run: python -m pip freeze
8383

84+
- name: Get system info
85+
uses: kenchan0130/actions-system-info@v1.0.0
86+
id: system-info
87+
8488
- name: CmdStan installation cacheing
8589
uses: actions/cache@v2
8690
with:
8791
path: ~/.cmdstan
88-
key: ${{ runner.os }}-cmdstan-${{ needs.get-cmdstan-version.outputs.version }}-${{ hashFiles('**/install_cmdstan.py') }}
92+
key: ${{ runner.os }}-${{ steps.system-info.outputs.release }}-cmdstan-${{ needs.get-cmdstan-version.outputs.version }}-${{ hashFiles('**/install_cmdstan.py') }}
8993

9094
- name: Install CmdStan (Linux, macOS)
9195
if: matrix.os != 'windows-latest'

0 commit comments

Comments
 (0)