Skip to content

Commit

Permalink
fix: Operating system and architecture in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
datawookie committed Apr 23, 2024
1 parent b743270 commit bec6243
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:
matrix:
config:
- {os: windows-latest, r: 'release'}
- {os: macos-11, r: 'release', arch: 'x86_64'}
- {os: macos-12, r: 'release', arch: 'x86_64'}
- {os: macos-13, r: 'release', arch: 'x86_64'}
- {os: macos-14, r: 'release', arch: 'x86_64'}
- {os: macos-11, r: 'release', arch: 'x86_64', os_version: 'macos-11'}
- {os: macos-12, r: 'release', arch: 'x86_64', os_version: 'macos-12'}
- {os: macos-13, r: 'release', arch: 'x86_64', os_version: 'macos-13'}
- {os: macos-14, r: 'release', arch: 'x86_64', os_version: 'macos-14'}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest", http-user-agent: "R/4.1.0 (ubuntu-20.04) R (4.1.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }

Expand Down Expand Up @@ -90,8 +90,8 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-
key: ${{ matrix.config.os_version }}-${{ matrix.config.arch }}-R-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ matrix.config.os_version }}-${{ matrix.config.arch }}-R-${{ hashFiles('.github/R-version') }}-1-

- name: Install OS dependencies
if: runner.os == 'Linux'
Expand Down

0 comments on commit bec6243

Please sign in to comment.