Skip to content

Commit df13ef3

Browse files
committed
Expand CI
1 parent fd46323 commit df13ef3

File tree

1 file changed

+50
-5
lines changed

1 file changed

+50
-5
lines changed

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

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,93 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main, master, workflow-test]
66
pull_request:
77
branches: [main, master]
88

99
name: R-CMD-check
1010

1111
jobs:
1212
R-CMD-check:
13-
runs-on: ${{ matrix.config.os }}
13+
runs-on: matrix.config.os
1414

1515
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
1616

1717
strategy:
1818
fail-fast: false
1919
matrix:
2020
config:
21+
- {os: macos-latest, r: 'devel'}
2122
- {os: macos-latest, r: 'release'}
23+
24+
- {os: windows-11-arm, r: '4.5.1'}
25+
- {os: windows-latest, r: 'devel'}
2226
- {os: windows-latest, r: 'release'}
27+
28+
- {os: ubuntu-24.04-arm, r: 'devel'}
2329
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
2430
- {os: ubuntu-latest, r: 'release'}
25-
- {os: ubuntu-latest, r: 'oldrel-1'}
2631

2732
env:
2833
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2934
R_KEEP_PKG_SOURCE: yes
35+
MAKEFLAGS: -j4
3036

3137
steps:
32-
- uses: actions/checkout@v5
38+
- uses: actions/checkout@v4
39+
with:
40+
submodules: true
3341

3442
- uses: r-lib/actions/setup-pandoc@v2
3543

3644
- uses: r-lib/actions/setup-r@v2
45+
if: matrix.config.os != 'windows-11-arm'
3746
with:
3847
r-version: ${{ matrix.config.r }}
48+
rtools-version: ${{ matrix.config.rtools }}
3949
http-user-agent: ${{ matrix.config.http-user-agent }}
4050
use-public-rspm: true
4151

52+
- name: Install R & RTools (ARM64)
53+
if: matrix.config.os == 'windows-11-arm'
54+
run: |
55+
$url = "https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-${{ matrix.config.r }}-aarch64.exe"
56+
Invoke-WebRequest `
57+
-Uri https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-${{ matrix.config.r }}-aarch64.exe `
58+
-OutFile ../R-${{ matrix.config.r }}-aarch64.exe
59+
Start-Process `
60+
-FilePath ../R-${{ matrix.config.r }}-aarch64.exe `
61+
-ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
62+
63+
Invoke-WebRequest `
64+
-Uri https://github.com/r-hub/rtools45/releases/download/latest/rtools45-aarch64.exe `
65+
-OutFile "../rtools45-aarch64.exe"
66+
Start-Process `
67+
-FilePath "../rtools45-aarch64.exe" `
68+
-ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
69+
70+
echo "C:/rtools45-aarch64/usr/bin;C:/rtools45-aarch64/aarch64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
71+
echo "C:/Program Files/R-aarch64/R-${{ matrix.config.r }}/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
72+
73+
- name: Install pak on Windows ARM
74+
if: matrix.config.os == 'windows-11-arm'
75+
run: |
76+
libsdir <- file.path(Sys.getenv("TMP"), "Library")
77+
dir.create(libsdir, recursive = TRUE, showWarnings = FALSE)
78+
cat(sprintf("R_LIB_FOR_PAK=%s\n", libsdir), file = Sys.getenv("GITHUB_ENV"), append = TRUE)
79+
cat(sprintf("R_LIBS_USER=%s\n", libsdir), file = Sys.getenv("GITHUB_ENV"), append = TRUE)
80+
install.packages("pak", lib = libsdir,
81+
repos = c("https://r-lib.r-universe.dev", "https://cloud.r-project.org"),
82+
Ncpus = 4);
83+
shell: Rscript {0}
84+
4285
- uses: r-lib/actions/setup-r-dependencies@v2
4386
with:
44-
extra-packages: any::rcmdcheck
87+
extra-packages: any::rcmdcheck ${{ matrix.config.os == 'windows-11-arm' && 'RcppCore/RcppParallel' || '' }}
4588
needs: check
89+
pak-version: ${{ matrix.config.os == 'windows-11-arm' && 'none' || 'stable' }}
4690

4791
- uses: r-lib/actions/check-r-package@v2
4892
with:
4993
upload-snapshots: true
94+
check-dir: '"check"'

0 commit comments

Comments
 (0)