Skip to content

Commit 99b7c06

Browse files
committed
Add WinArm64 to CI
1 parent a38372c commit 99b7c06

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- {os: macos-latest, r: 'release'}
2323
- {os: macos-latest, r: 'oldrel'}
2424

25+
- {os: windows-11-arm }
2526
- {os: windows-latest, r: 'devel'}
2627
- {os: windows-latest, r: 'release'}
2728
- {os: windows-latest, r: 'oldrel'}
@@ -47,16 +48,48 @@ jobs:
4748
- uses: r-lib/actions/setup-pandoc@v2
4849

4950
- uses: r-lib/actions/setup-r@v2
51+
if: matrix.config.os != 'windows-11-arm'
5052
with:
5153
r-version: ${{ matrix.config.r }}
5254
rtools-version: ${{ matrix.config.rtools }}
5355
http-user-agent: ${{ matrix.config.http-user-agent }}
5456
use-public-rspm: true
5557

58+
- name: Install R & RTools (ARM64)
59+
if: matrix.config.os == 'windows-11-arm'
60+
run: |
61+
$url = "https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-4.5.0-aarch64.exe"
62+
Invoke-WebRequest `
63+
-Uri https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-4.5.0-aarch64.exe `
64+
-OutFile R-4.5.0-aarch64.exe
65+
Start-Process `
66+
-FilePath R-4.5.0-aarch64.exe `
67+
-ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
68+
69+
Invoke-WebRequest `
70+
-Uri https://github.com/r-hub/rtools45/releases/download/latest/rtools45-aarch64.exe `
71+
-OutFile "rtools45-aarch64.exe"
72+
Start-Process `
73+
-FilePath "rtools45-aarch64.exe" `
74+
-ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
75+
76+
echo "C:/rtools45-aarch64/usr/bin;C:/rtools45-aarch64/aarch64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
77+
echo "C:\Program Files\R-aarch64\R-4.5.0\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
78+
Remove-Item -Path "R-4.5.0-aarch64.exe"
79+
Remove-Item -Path "rtools45-aarch64.exe"
80+
81+
- name: Install Dependencies (ARM64)
82+
if: matrix.config.os == 'windows-11-arm'
83+
run: |
84+
install.packages(c("tinytest", "knitr", "rmarkdown", "rcmdcheck"),
85+
repos = c("https://r-lib.r-universe.dev", "https://cloud.r-project.org"),
86+
Ncpus = 4);
87+
shell: Rscript {0}
88+
5689
- uses: r-lib/actions/setup-r-dependencies@v2
90+
if: matrix.config.os != 'windows-11-arm'
5791
with:
58-
extra-packages: |
59-
any::rcmdcheck
92+
extra-packages: any::rcmdcheck
6093
needs: check
6194

6295
- uses: r-lib/actions/check-r-package@v2

0 commit comments

Comments
 (0)