Skip to content

Commit 597a84b

Browse files
committed
Expanded dev CI run
1 parent 11b6913 commit 597a84b

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master, winarm]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
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+
35+
env:
36+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
37+
R_KEEP_PKG_SOURCE: yes
38+
MAKEFLAGS: -j4
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
with:
43+
submodules: true
44+
45+
- uses: r-lib/actions/setup-pandoc@v2
46+
47+
- uses: r-lib/actions/setup-r@v2
48+
if: matrix.config.os != 'windows-11-arm'
49+
with:
50+
r-version: ${{ matrix.config.r }}
51+
rtools-version: ${{ matrix.config.rtools }}
52+
http-user-agent: ${{ matrix.config.http-user-agent }}
53+
use-public-rspm: true
54+
55+
- name: Install R & RTools (ARM64)
56+
if: matrix.config.os == 'windows-11-arm'
57+
run: |
58+
$url = "https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-4.5.0-aarch64.exe"
59+
Invoke-WebRequest `
60+
-Uri https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-4.5.0-aarch64.exe `
61+
-OutFile R-4.5.0-aarch64.exe
62+
Start-Process `
63+
-FilePath R-4.5.0-aarch64.exe `
64+
-ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
65+
66+
Invoke-WebRequest `
67+
-Uri https://github.com/r-hub/rtools45/releases/download/latest/rtools45-aarch64.exe `
68+
-OutFile "rtools45-aarch64.exe"
69+
Start-Process `
70+
-FilePath "rtools45-aarch64.exe" `
71+
-ArgumentList "/INSTALL /VERYSILENT /SUPPRESSMSGBOXES" -Wait
72+
73+
echo "C:/rtools45-aarch64/usr/bin;C:/rtools45-aarch64/aarch64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
74+
echo "C:\Program Files\R-aarch64\R-4.5.0\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
75+
Remove-Item -Path "R-4.5.0-aarch64.exe"
76+
Remove-Item -Path "rtools45-aarch64.exe"
77+
78+
- name: Install pak on Windows ARM
79+
if: matrix.config.os == 'windows-11-arm'
80+
run: |
81+
libsdir <- file.path(Sys.getenv("TMP"), "Library")
82+
dir.create(libsdir, recursive = TRUE, showWarnings = FALSE)
83+
cat(sprintf("R_LIB_FOR_PAK=%s\n", libsdir), file = Sys.getenv("GITHUB_ENV"), append = TRUE)
84+
cat(sprintf("R_LIBS_USER=%s\n", libsdir), file = Sys.getenv("GITHUB_ENV"), append = TRUE)
85+
install.packages("pak", lib = libsdir,
86+
repos = c("https://r-lib.r-universe.dev", "https://cloud.r-project.org"),
87+
Ncpus = 4);
88+
shell: Rscript {0}
89+
90+
- uses: r-lib/actions/setup-r-dependencies@v2
91+
with:
92+
extra-packages: any::rcmdcheck
93+
needs: check
94+
pak-version: ${{ matrix.config.os == 'windows-11-arm' && 'none' || 'stable' }}
95+
96+
- uses: r-lib/actions/check-r-package@v2
97+
with:
98+
upload-snapshots: true
99+
check-dir: '"check"'

0 commit comments

Comments
 (0)