Skip to content

Commit 6a2208d

Browse files
committed
add rtools to path windows.
1 parent f367956 commit 6a2208d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,34 @@ jobs:
4747
any::testthat
4848
any::devtools
4949
local::.
50+
51+
52+
# --- (Windows only): ensure Rtools44 paths on PATH ---
53+
- name: Add Rtools to PATH
54+
if: runner.os == 'Windows'
55+
shell: powershell
56+
run: |
57+
$paths = @(
58+
'C:\rtools44\usr\bin',
59+
'C:\rtools44\ucrt64\bin'
60+
)
61+
$paths | ForEach-Object {
62+
if (Test-Path $_) {
63+
echo "Adding $_ to PATH"
64+
echo $_ >> $env:GITHUB_PATH
65+
} else {
66+
Write-Host "Path missing (ignore if not needed): $_"
67+
}
68+
}
69+
70+
- name: Verify toolchain (Windows)
71+
if: runner.os == 'Windows'
72+
shell: powershell
73+
run: |
74+
where make
75+
where g++
76+
g++ --version
77+
make --version
5078
5179
- name: Install CmdStan
5280
shell: Rscript {0}

0 commit comments

Comments
 (0)