Skip to content

Commit 8e547a5

Browse files
Upgrade R version used in windows builds
1 parent 8c1aea5 commit 8e547a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/workflow.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ jobs:
99
build:
1010
name: Build - Windows
1111
runs-on: windows-latest
12+
env:
13+
R_VERSION: 4.4.2
1214
steps:
1315
- name: Install dependencies
1416
run: |
1517
choco install --no-progress -y haskell-stack
16-
choco install --allow-downgrade --no-progress -y r --version 4.0.0
18+
choco install --allow-downgrade --no-progress -y r --version $env:R_VERSION
1719
- uses: actions/checkout@v4
1820
- name: Get Stack snapshot install directory
1921
id: stack-snapshot
@@ -30,8 +32,8 @@ jobs:
3032
- name: Build
3133
run: |
3234
stack build inline-r H `
33-
--extra-lib-dirs="C:/Program files/R/R-4.0.0/bin/x64" `
34-
--extra-include-dirs="C:/Program files/R/R-4.0.0/include"
35+
--extra-lib-dirs="C:/Program files/R/R-$env:R_VERSION/bin/x64" `
36+
--extra-include-dirs="C:/Program files/R/R-$env:R_VERSION/include"
3537
test:
3638
name: Build & Test - ${{ matrix.os }} - ${{ matrix.stack_yaml }}
3739
strategy:

0 commit comments

Comments
 (0)