Skip to content

Commit

Permalink
Fix dep check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed May 19, 2024
1 parent ab3d1e1 commit 988e9b5
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
- {os: macOS-latest, r: 'devel'}
- {os: macOS-latest, r: 'release'}
- {os: macOS-latest, r: 'oldrel'}
#- {os: windows-latest, r: 'devel'}
#- {os: windows-latest, r: 'release'}
#- {os: windows-latest, r: 'oldrel'}
- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'oldrel'}
- {os: ubuntu-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel'}
Expand All @@ -47,10 +47,6 @@ jobs:
with:
submodules: recursive

- name: Duplicate StanHeaders to avoid issues with cleanup running twice
run: cp -r StanHeaders StanHeaders2
shell: bash

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
Expand All @@ -59,9 +55,15 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: StanHeaders2
working-directory: StanHeaders
extra-packages: any::rcmdcheck, local::.

- name: Revert all changes due to cleanup
run: |
git reset --hard
git clean -fd
shell: bash

- uses: r-lib/actions/check-r-package@v2
with:
working-directory: StanHeaders
Expand All @@ -71,6 +73,8 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: rstan/rstan
# StanHeaders installed earlier
extra-packages: StanHeaders=?ignore

- uses: r-lib/actions/check-r-package@v2
with:
Expand Down

0 comments on commit 988e9b5

Please sign in to comment.