22# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33on :
44 push :
5- branches : [main, master]
5+ branches : [main, master, winarm-ci ]
66 pull_request :
77 branches : [main, master]
88
@@ -18,21 +18,22 @@ jobs:
1818 fail-fast : false
1919 matrix :
2020 config :
21- - {os: macos-latest, r: 'devel'}
22- - {os: macos-latest, r: 'release'}
23- - {os: macos-latest, r: 'oldrel'}
24-
25- - {os: windows-latest, r: 'devel'}
26- - {os: windows-latest, r: 'release'}
27- - {os: windows-latest, r: 'oldrel'}
28-
29- - {os: ubuntu-24.04-arm, r: 'devel'}
30- - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
31- - {os: ubuntu-latest, r: 'release'}
32- - {os: ubuntu-latest, r: 'oldrel'}
33- - {os: ubuntu-latest, r: '4.1'}
34- - {os: ubuntu-latest, r: '4.0'}
35- - {os: ubuntu-latest, r: '3.6'}
21+ # - {os: macos-latest, r: 'devel'}
22+ # - {os: macos-latest, r: 'release'}
23+ # - {os: macos-latest, r: 'oldrel'}
24+
25+ - {os: windows-11-arm }
26+ # - {os: windows-latest, r: 'devel'}
27+ # - {os: windows-latest, r: 'release'}
28+ # - {os: windows-latest, r: 'oldrel'}
29+
30+ # - {os: ubuntu-24.04-arm, r: 'devel'}
31+ # - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
32+ # - {os: ubuntu-latest, r: 'release'}
33+ # - {os: ubuntu-latest, r: 'oldrel'}
34+ # - {os: ubuntu-latest, r: '4.1'}
35+ # - {os: ubuntu-latest, r: '4.0'}
36+ # - {os: ubuntu-latest, r: '3.6'}
3637
3738 env :
3839 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
@@ -45,14 +46,57 @@ jobs:
4546 submodules : true
4647
4748 - uses : r-lib/actions/setup-pandoc@v2
49+ if : matrix.config.os != 'windows-11-arm'
4850
4951 - uses : r-lib/actions/setup-r@v2
52+ if : matrix.config.os != 'windows-11-arm'
5053 with :
5154 r-version : ${{ matrix.config.r }}
5255 rtools-version : ${{ matrix.config.rtools }}
5356 http-user-agent : ${{ matrix.config.http-user-agent }}
5457 use-public-rspm : true
5558
59+ - name : Cache R
60+ if : matrix.config.os == 'windows-11-arm'
61+ id : cache-r
62+ uses : actions/cache@v4
63+ with :
64+ path : |
65+ "C:\\Program Files\\R-aarch64\\R-4.5.0"
66+ "C:\\rtools45-aarch64"
67+ key : winarm64-r
68+
69+ - name : Install R & RTools (ARM64)
70+ if : matrix.config.os == 'windows-11-arm' && steps.cache-r.outputs.cache-hit != 'true'
71+ run : |
72+ $url = "https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-4.5.0-aarch64.exe"
73+ Invoke-WebRequest `
74+ -Uri https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-4.5.0-aarch64.exe `
75+ -OutFile R-4.5.0-aarch64.exe
76+ Start-Process `
77+ -FilePath R-4.5.0-aarch64.exe `
78+ -ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
79+
80+ Invoke-WebRequest `
81+ -Uri https://github.com/r-hub/rtools45/releases/download/latest/rtools45-aarch64.exe `
82+ -OutFile "rtools45-aarch64.exe"
83+ Start-Process `
84+ -FilePath "rtools45-aarch64.exe" `
85+ -ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
86+
87+ - name : Add R & RTools to Path (ARM64)
88+ if : matrix.config.os == 'windows-11-arm' && steps.cache-r.outputs.cache-hit != 'true'
89+ run : |
90+ echo "C:/rtools45-aarch64/usr/bin;C:/rtools45-aarch64/aarch64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
91+ echo "C:\Program Files\R-aarch64\R-4.5.0\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
92+
93+ # - name: Install dependencies & Check Package (ARM64)
94+ # if: matrix.config.os == 'windows-11-arm'
95+ # run: install.packages(c("tinytest", "rmarkdown", "knitr", "rcmdcheck"),
96+ # repos = c(CRAN = "https://cloud.r-project.org"))
97+ # shell: Rscript {0}
98+
99+
56100 - uses : r-lib/actions/setup-r-dependencies@v2
57101 with :
58102 extra-packages : |
0 commit comments