|
2 | 2 | # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help |
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [main, master] |
| 5 | + branches: [main, master, workflow-test] |
6 | 6 | pull_request: |
7 | 7 | branches: [main, master] |
8 | 8 |
|
9 | 9 | name: R-CMD-check |
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | R-CMD-check: |
13 | | - runs-on: ${{ matrix.config.os }} |
| 13 | + runs-on: matrix.config.os |
14 | 14 |
|
15 | 15 | name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
16 | 16 |
|
17 | 17 | strategy: |
18 | 18 | fail-fast: false |
19 | 19 | matrix: |
20 | 20 | config: |
| 21 | + - {os: macos-latest, r: 'devel'} |
21 | 22 | - {os: macos-latest, r: 'release'} |
| 23 | + |
| 24 | + - {os: windows-11-arm, r: '4.5.1'} |
| 25 | + - {os: windows-latest, r: 'devel'} |
22 | 26 | - {os: windows-latest, r: 'release'} |
| 27 | + |
| 28 | + - {os: ubuntu-24.04-arm, r: 'devel'} |
23 | 29 | - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} |
24 | 30 | - {os: ubuntu-latest, r: 'release'} |
25 | | - - {os: ubuntu-latest, r: 'oldrel-1'} |
26 | 31 |
|
27 | 32 | env: |
28 | 33 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
29 | 34 | R_KEEP_PKG_SOURCE: yes |
| 35 | + MAKEFLAGS: -j4 |
30 | 36 |
|
31 | 37 | steps: |
32 | | - - uses: actions/checkout@v5 |
| 38 | + - uses: actions/checkout@v4 |
| 39 | + with: |
| 40 | + submodules: true |
33 | 41 |
|
34 | 42 | - uses: r-lib/actions/setup-pandoc@v2 |
35 | 43 |
|
36 | 44 | - uses: r-lib/actions/setup-r@v2 |
| 45 | + if: matrix.config.os != 'windows-11-arm' |
37 | 46 | with: |
38 | 47 | r-version: ${{ matrix.config.r }} |
| 48 | + rtools-version: ${{ matrix.config.rtools }} |
39 | 49 | http-user-agent: ${{ matrix.config.http-user-agent }} |
40 | 50 | use-public-rspm: true |
41 | 51 |
|
| 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 | + |
42 | 85 | - uses: r-lib/actions/setup-r-dependencies@v2 |
43 | 86 | with: |
44 | | - extra-packages: any::rcmdcheck |
| 87 | + extra-packages: any::rcmdcheck ${{ matrix.config.os == 'windows-11-arm' && 'RcppCore/RcppParallel' || '' }} |
45 | 88 | needs: check |
| 89 | + pak-version: ${{ matrix.config.os == 'windows-11-arm' && 'none' || 'stable' }} |
46 | 90 |
|
47 | 91 | - uses: r-lib/actions/check-r-package@v2 |
48 | 92 | with: |
49 | 93 | upload-snapshots: true |
| 94 | + check-dir: '"check"' |
0 commit comments