Skip to content

Commit 33f0759

Browse files
committed
Update workflow to fix an issue with MacOS
1 parent 50342ba commit 33f0759

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/check-standard.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2-
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
32

43
on:
54
push:
@@ -47,10 +46,14 @@ jobs:
4746
print(getOption("repos"))
4847
shell: Rscript {0}
4948

49+
# macOS-only: remove lockfile to prevent pak crash
50+
- name: Remove pak lockfile (macOS workaround)
51+
if: matrix.config.os == 'macOS-latest'
52+
run: rm -f .github/pkg.lock
53+
5054
- uses: r-lib/actions/setup-r-dependencies@v2
5155
with:
5256
dependencies: '"all"'
53-
cache: ${{ matrix.config.os != 'macOS-latest' }}
5457
extra-packages: |
5558
rcmdcheck
5659
rstan

0 commit comments

Comments
 (0)